diff --git a/dtmgrpc/type_test.go b/dtmgrpc/type_test.go new file mode 100644 index 0000000..d6a80fc --- /dev/null +++ b/dtmgrpc/type_test.go @@ -0,0 +1,12 @@ +package dtmgrpc + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestType(t *testing.T) { + _, err := BarrierFromGrpc(&BusiRequest{Info: &BranchInfo{}}) + assert.Error(t, err) +}