MCPcopy Create free account
hub / github.com/distributedio/titan / TestSimpleString_Decode

Function TestSimpleString_Decode

encoding/resp/resp_test.go:47–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func 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
55func TestSimpleString_Encode(t *testing.T) {
56 assert := assert.New(t)

Callers

nothing calls this directly

Calls 2

SimpleStringMethod · 0.95
NewDecoderFunction · 0.85

Tested by

no test coverage detected