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

Function TestNullBulkString_Encode

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

Source from the content-addressed store, hash-verified

149}
150
151func TestNullBulkString_Encode(t *testing.T) {
152 assert := assert.New(t)
153 out := bytes.NewBuffer(nil)
154 e := NewEncoder(out)
155 err := e.NullBulkString()
156 assert.NoError(err)
157 assert.Equal("$-1\r\n", out.String())
158}

Callers

nothing calls this directly

Calls 3

NullBulkStringMethod · 0.95
NewEncoderFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected