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

Function TestSimpleString_Encode

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

Source from the content-addressed store, hash-verified

53}
54
55func TestSimpleString_Encode(t *testing.T) {
56 assert := assert.New(t)
57 out := bytes.NewBuffer(nil)
58 e := NewEncoder(out)
59 err := e.SimpleString("OK")
60 assert.NoError(err)
61 assert.Equal("+OK\r\n", out.String())
62}
63
64func TestBulkString_Decode(t *testing.T) {
65 assert := assert.New(t)

Callers

nothing calls this directly

Calls 3

SimpleStringMethod · 0.95
NewEncoderFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected