mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-24 17:32:23 +08:00
28 lines
546 B
Go
28 lines
546 B
Go
package interceptor
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestStreamClientMetrics(t *testing.T) {
|
|
interceptor := StreamClientMetrics()
|
|
assert.NotNil(t, interceptor)
|
|
}
|
|
|
|
func TestStreamServerMetrics(t *testing.T) {
|
|
interceptor := StreamServerMetrics()
|
|
assert.NotNil(t, interceptor)
|
|
}
|
|
|
|
func TestUnaryClientMetrics(t *testing.T) {
|
|
interceptor := UnaryClientMetrics()
|
|
assert.NotNil(t, interceptor)
|
|
}
|
|
|
|
func TestUnaryServerMetrics(t *testing.T) {
|
|
interceptor := UnaryServerMetrics()
|
|
assert.NotNil(t, interceptor)
|
|
}
|