mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 08:48:40 +08:00
0a2c2d1eca
* change grpc interceptor to chain interceptor * change server rpc interceptors, del testing code
17 lines
318 B
Go
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)
|
|
} |