(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestSimpleString_Decode(t *testing.T) { |
| 48 | assert := assert.New(t) |
| 49 | d := NewDecoder(bytes.NewBufferString("+OK\r\n")) |
| 50 | val, err := d.SimpleString() |
| 51 | assert.NoError(err) |
| 52 | assert.Equal("OK", val) |
| 53 | } |
| 54 | |
| 55 | func TestSimpleString_Encode(t *testing.T) { |
| 56 | assert := assert.New(t) |
nothing calls this directly
no test coverage detected