Files
sponge/pkg/grpc/interceptor/tracing_test.go
zhuyasen 891af10cb6 add test
2022-09-25 19:06:27 +08:00

28 lines
546 B
Go

package interceptor
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestStreamClientTracing(t *testing.T) {
interceptor := StreamClientTracing()
assert.NotNil(t, interceptor)
}
func TestStreamServerTracing(t *testing.T) {
interceptor := StreamServerTracing()
assert.NotNil(t, interceptor)
}
func TestUnaryClientTracing(t *testing.T) {
interceptor := UnaryClientTracing()
assert.NotNil(t, interceptor)
}
func TestUnaryServerTracing(t *testing.T) {
interceptor := UnaryServerTracing()
assert.NotNil(t, interceptor)
}