(t *testing.T)
| 679 | } |
| 680 | |
| 681 | func TestDecoderSkipEscapedStringError(t *testing.T) { |
| 682 | dec := NewDecoder(strings.NewReader(``)) |
| 683 | defer dec.Release() |
| 684 | err := dec.skipEscapedString() |
| 685 | assert.NotNil(t, err, "Err must be nil") |
| 686 | assert.IsType(t, InvalidJSONError(""), err, "err must be of type InvalidJSONError") |
| 687 | } |
| 688 | |
| 689 | func TestDecoderSkipEscapedStringError2(t *testing.T) { |
| 690 | dec := NewDecoder(strings.NewReader(`\"`)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…