(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 58 | func TestEncodeBulkBytes(t *testing.T) { |
| 59 | resp := NewBulkBytes(nil) |
nothing calls this directly
no test coverage detected