(t *testing.T)
| 513 | } |
| 514 | |
| 515 | func TestDecoderSliceDecoderAPIError(t *testing.T) { |
| 516 | testArr := testSliceInts{} |
| 517 | dec := NewDecoder(strings.NewReader(`hello`)) |
| 518 | err := dec.DecodeArray(&testArr) |
| 519 | assert.NotNil(t, err, "Err must not be nil as JSON is invalid") |
| 520 | assert.IsType(t, InvalidJSONError(""), err, "err message must be 'Invalid JSON'") |
| 521 | } |
| 522 | |
| 523 | func TestUnmarshalJSONArrays(t *testing.T) { |
| 524 | testCases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…