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

Function TestEncodeInt

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

Source from the content-addressed store, hash-verified

48}
49
50func TestEncodeInt(t *testing.T) {
51 for _, v := range []int{-1, 0, 1024 * 1024} {
52 s := strconv.Itoa(v)
53 resp := NewInt([]byte(s))
54 testEncodeAndCheck(t, resp, []byte(":"+s+"\r\n"))
55 }
56}
57
58func TestEncodeBulkBytes(t *testing.T) {
59 resp := NewBulkBytes(nil)

Callers

nothing calls this directly

Calls 2

NewIntFunction · 0.85
testEncodeAndCheckFunction · 0.85

Tested by

no test coverage detected