(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestNonRecordDeref(t *testing.T) { |
| 26 | const input = ` |
| 27 | 1 |
| 28 | 192.168.1.1 |
| 29 | null |
| 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 | |
| 44 | func TestNormalizeSet(t *testing.T) { |
| 45 | t.Run("duplicate-element", func(t *testing.T) { |
nothing calls this directly
no test coverage detected