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

Function TestInteger_Encode

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

Source from the content-addressed store, hash-verified

140}
141
142func TestInteger_Encode(t *testing.T) {
143 assert := assert.New(t)
144 out := bytes.NewBuffer(nil)
145 e := NewEncoder(out)
146 err := e.Integer(1)
147 assert.NoError(err)
148 assert.Equal(":1\r\n", out.String())
149}
150
151func TestNullBulkString_Encode(t *testing.T) {
152 assert := assert.New(t)

Callers

nothing calls this directly

Calls 3

IntegerMethod · 0.95
NewEncoderFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected