(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func TestEncodeBulkBytes(t *testing.T) { |
| 59 | resp := NewBulkBytes(nil) |
| 60 | testEncodeAndCheck(t, resp, []byte("$-1\r\n")) |
| 61 | resp.Value = []byte{} |
| 62 | testEncodeAndCheck(t, resp, []byte("$0\r\n\r\n")) |
| 63 | resp.Value = []byte("helloworld!!") |
| 64 | testEncodeAndCheck(t, resp, []byte("$12\r\nhelloworld!!\r\n")) |
| 65 | } |
| 66 | |
| 67 | func TestEncodeArray(t *testing.T) { |
| 68 | resp := NewArray(nil) |
nothing calls this directly
no test coverage detected