MCPcopy Create free account
hub / github.com/brimdata/super / TestAppend

Function TestAppend

scode/scode_test.go:21–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestAppend(t *testing.T) {
22 for _, c := range appendCases {
23 var buf []byte
24 for _, val := range c {
25 buf = Append(buf, val)
26 }
27 it := Iter(buf)
28 for _, expected := range c {
29 assert.False(t, it.Done())
30 assert.Exactly(t, expected, []byte(it.Next()))
31 }
32 assert.True(t, it.Done())
33 }
34}

Callers

nothing calls this directly

Calls 4

AppendFunction · 0.85
IterTypeAlias · 0.85
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected