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

Function TestArrayWriteCopiesValueBytes

sbuf/array_test.go:10–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestArrayWriteCopiesValueBytes(t *testing.T) {
11 var a Array
12 val := super.NewBytes([]byte{0})
13 a.Write(val)
14 copy(val.Bytes(), super.EncodeBytes([]byte{1}))
15 require.Equal(t, super.NewBytes([]byte{0}), a.Values()[0])
16}

Callers

nothing calls this directly

Calls 6

WriteMethod · 0.95
BytesMethod · 0.95
ValuesMethod · 0.95
NewBytesFunction · 0.92
EncodeBytesFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected