(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestDecodeStreamDecodePooledDecoderError1(t *testing.T) { |
| 25 | // we override the pool chan |
| 26 | dec := Stream.NewDecoder(nil) |
| 27 | dec.Release() |
| 28 | defer func() { |
| 29 | err := recover() |
| 30 | assert.NotNil(t, err, "err shouldnt be nil") |
| 31 | assert.IsType(t, InvalidUsagePooledDecoderError(""), err, "err should be of type InvalidUsagePooledDecoderError") |
| 32 | }() |
| 33 | var v = testSliceStrings{} |
| 34 | dec.DecodeArray(&v) |
| 35 | // make sure they are the same |
| 36 | assert.True(t, false, "should not be called as decoder should have panicked") |
| 37 | } |
| 38 | |
| 39 | func TestDecodeStreamDecodePooledDecoderError2(t *testing.T) { |
| 40 | // we override the pool chan |
nothing calls this directly
no test coverage detected
searching dependent graphs…