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

Method EncodeRequest

remoting/codec_test.go:32–34  ·  view source on GitHub ↗
(request *Request)

Source from the content-addressed store, hash-verified

30type mockCodec struct{}
31
32func (m *mockCodec) EncodeRequest(request *Request) (*bytes.Buffer, error) {
33 return bytes.NewBuffer([]byte("encoded-request")), nil
34}
35
36func (m *mockCodec) EncodeResponse(response *Response) (*bytes.Buffer, error) {
37 return bytes.NewBuffer([]byte("encoded-response")), nil

Callers 1

TestCodecInterfaceFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected