MCPcopy Create free account
hub / github.com/CodisLabs/codis / TestItoa

Function TestItoa

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

Source from the content-addressed store, hash-verified

29}
30
31func TestItoa(t *testing.T) {
32 for i, b := range tmap {
33 assert.Must(itoa(i) == string(b))
34 }
35 for i := int64(minItoa); i <= maxItoa; i++ {
36 assert.Must(itoa(i) == strconv.Itoa(int(i)))
37 }
38}
39
40func TestEncodeString(t *testing.T) {
41 resp := NewString([]byte("OK"))

Callers

nothing calls this directly

Calls 1

itoaFunction · 0.85

Tested by

no test coverage detected