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

Function TestBulkString_Encode

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

Source from the content-addressed store, hash-verified

94}
95
96func TestBulkString_Encode(t *testing.T) {
97 assert := assert.New(t)
98 out := bytes.NewBuffer(nil)
99 e := NewEncoder(out)
100 err := e.BulkString("test")
101 assert.NoError(err)
102 assert.Equal("$4\r\ntest\r\n", out.String())
103}
104
105func TestError_Decode(t *testing.T) {
106 assert := assert.New(t)

Callers

nothing calls this directly

Calls 3

BulkStringMethod · 0.95
NewEncoderFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected