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

Function TestEncodeString

pkg/proxy/redis/encoder_test.go:40–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestEncodeString(t *testing.T) {
41 resp := NewString([]byte("OK"))
42 testEncodeAndCheck(t, resp, []byte("+OK\r\n"))
43}
44
45func TestEncodeError(t *testing.T) {
46 resp := NewError([]byte("Error"))

Callers

nothing calls this directly

Calls 2

NewStringFunction · 0.85
testEncodeAndCheckFunction · 0.85

Tested by

no test coverage detected