go-zero/zrpc/internal/chainserverinterceptors_test.go
SunJun 0a2c2d1eca
change grpc interceptor to chain interceptor (#200)
* change grpc interceptor to chain interceptor

* change server rpc interceptors, del testing code
2020-11-11 17:15:22 +08:00

17 lines
318 B
Go

package internal
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestWithStreamServerInterceptors(t *testing.T) {
opts := WithStreamServerInterceptors()
assert.NotNil(t, opts)
}
func TestWithUnaryServerInterceptors(t *testing.T) {
opts := WithUnaryServerInterceptors()
assert.NotNil(t, opts)
}