github.com/lingyao2333/mo-zero@v1.4.1/zrpc/internal/chainserverinterceptors_test.go (about)

     1  package internal
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestWithStreamServerInterceptors(t *testing.T) {
    10  	opts := WithStreamServerInterceptors()
    11  	assert.NotNil(t, opts)
    12  }
    13  
    14  func TestWithUnaryServerInterceptors(t *testing.T) {
    15  	opts := WithUnaryServerInterceptors()
    16  	assert.NotNil(t, opts)
    17  }