(t *testing.T)
| 234 | } |
| 235 | |
| 236 | func TestJSONTopLevelSliceWithError(t *testing.T) { |
| 237 | slice, err := objx.FromJSONSlice(`{"id": 10000001}`) |
| 238 | |
| 239 | assert.Error(t, err) |
| 240 | assert.Nil(t, slice) |
| 241 | assert.Panics(t, func() { |
| 242 | _ = objx.MustFromJSONSlice(`{"id": 10000001}`) |
| 243 | }) |
| 244 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…