mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-28 11:21:43 +08:00
add test
This commit is contained in:
27
pkg/grpc/interceptor/tracing_test.go
Normal file
27
pkg/grpc/interceptor/tracing_test.go
Normal file
@@ -0,0 +1,27 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user