MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestReadVarBytesRead

Function TestReadVarBytesRead

common/serialization/serialize_test.go:195–204  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

193}
194
195func TestReadVarBytesRead(t *testing.T) {
196 bs := make([]byte, 2048+1)
197 for i := 0; i < len(bs); i++ {
198 bs[i] = byte(i)
199 }
200 buff := bytes.NewBuffer(bs)
201 read, err := byteXReader(buff, uint64(len(bs)))
202 assert.Nil(t, err)
203 assert.Equal(t, bs, read)
204}
205
206const N = 24829*1 + 1
207

Callers

nothing calls this directly

Calls 1

byteXReaderFunction · 0.85

Tested by

no test coverage detected