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

Function TestCopyMutateFields

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

Source from the content-addressed store, hash-verified

125}
126
127func TestCopyMutateFields(t *testing.T) {
128 c := super.NewContext()
129 fields := []super.Field{{"foo", super.TypeString, false}, {"bar", super.TypeInt64, false}}
130 typ, err := c.LookupTypeRecord(fields)
131 require.NoError(t, err)
132 fields[0].Type = nil
133 require.NotNil(t, typ.Fields[0].Type)
134}

Callers

nothing calls this directly

Calls 2

LookupTypeRecordMethod · 0.95
NewContextFunction · 0.92

Tested by

no test coverage detected