MCPcopy Create free account
hub / github.com/apache/dubbo-go / TestProtocolCodecSetSerializer

Function TestProtocolCodecSetSerializer

protocol/dubbo/impl/codec_test.go:151–157  ·  view source on GitHub ↗

TestProtocolCodecSetSerializer tests SetSerializer method of ProtocolCodec

(t *testing.T)

Source from the content-addressed store, hash-verified

149
150// TestProtocolCodecSetSerializer tests SetSerializer method of ProtocolCodec
151func TestProtocolCodecSetSerializer(t *testing.T) {
152 codec := NewDubboCodec(nil)
153 serializer := &HessianSerializer{}
154
155 codec.SetSerializer(serializer)
156 assert.NotNil(t, codec.serializer)
157}
158
159// TestPackageResponseWorkflow tests response package workflow
160func TestPackageResponseWorkflow(t *testing.T) {

Callers

nothing calls this directly

Calls 2

NewDubboCodecFunction · 0.85
SetSerializerMethod · 0.45

Tested by

no test coverage detected