(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestArray_Raw(t *testing.T) { |
| 138 | reporter := newMockReporter(t) |
| 139 | |
| 140 | data := []interface{}{"foo", 123.0} |
| 141 | |
| 142 | value := NewArray(reporter, data) |
| 143 | |
| 144 | assert.Equal(t, data, value.Raw()) |
| 145 | assert.NotSame(t, &data[0], &value.Raw()[0]) |
| 146 | value.chain.assert(t, success) |
| 147 | } |
| 148 | |
| 149 | func TestArray_Decode(t *testing.T) { |
| 150 | t.Run("target is empty interface", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…