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

Function TestError_Encode

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

Source from the content-addressed store, hash-verified

117}
118
119func TestError_Encode(t *testing.T) {
120 assert := assert.New(t)
121 out := bytes.NewBuffer(nil)
122 e := NewEncoder(out)
123 err := e.Error("error")
124 assert.NoError(err)
125 assert.Equal("-error\r\n", out.String())
126}
127
128func TestInteger_Decode(t *testing.T) {
129 assert := assert.New(t)

Callers

nothing calls this directly

Calls 3

ErrorMethod · 0.95
NewEncoderFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected