MCPcopy Index your code
hub / github.com/CodisLabs/codis / testEncodeAndCheck

Function testEncodeAndCheck

pkg/proxy/redis/encoder_test.go:80–84  ·  view source on GitHub ↗
(t *testing.T, resp *Resp, expect []byte)

Source from the content-addressed store, hash-verified

78}
79
80func testEncodeAndCheck(t *testing.T, resp *Resp, expect []byte) {
81 b, err := EncodeToBytes(resp)
82 assert.MustNoError(err)
83 assert.Must(bytes.Equal(b, expect))
84}
85
86func newBenchmarkEncoder(n int) *Encoder {
87 return NewEncoderSize(ioutil.Discard, 1024*128)

Callers 5

TestEncodeStringFunction · 0.85
TestEncodeErrorFunction · 0.85
TestEncodeIntFunction · 0.85
TestEncodeBulkBytesFunction · 0.85
TestEncodeArrayFunction · 0.85

Calls 1

EncodeToBytesFunction · 0.85

Tested by

no test coverage detected