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

Function TestEncodeError

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

Source from the content-addressed store, hash-verified

43}
44
45func TestEncodeError(t *testing.T) {
46 resp := NewError([]byte("Error"))
47 testEncodeAndCheck(t, resp, []byte("-Error\r\n"))
48}
49
50func TestEncodeInt(t *testing.T) {
51 for _, v := range []int{-1, 0, 1024 * 1024} {

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.85
testEncodeAndCheckFunction · 0.85

Tested by

no test coverage detected