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

Function TestNonRecordDeref

complex_test.go:25–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestNonRecordDeref(t *testing.T) {
26 const input = `
271
28192.168.1.1
29null
30[1,2,3]
31|[1,2,3]|`
32 reader := supio.NewReader(super.NewContext(), strings.NewReader(input))
33 for {
34 val, err := reader.Read()
35 if val == nil {
36 break
37 }
38 require.NoError(t, err)
39 v := val.Deref("foo")
40 require.Nil(t, v)
41 }
42}
43
44func TestNormalizeSet(t *testing.T) {
45 t.Run("duplicate-element", func(t *testing.T) {

Callers

nothing calls this directly

Calls 5

ReadMethod · 0.95
NewReaderFunction · 0.92
NewContextFunction · 0.92
NewReaderMethod · 0.45
DerefMethod · 0.45

Tested by

no test coverage detected