(t *testing.T)
| 125 | } |
| 126 | |
| 127 | func 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 | } |
nothing calls this directly
no test coverage detected