(t *testing.T)
| 232 | } |
| 233 | |
| 234 | func TestChunkEndReadError(t *testing.T) { |
| 235 | readErr := fmt.Errorf("chunk end read error") |
| 236 | |
| 237 | r := NewChunkedReader(io.MultiReader(strings.NewReader("4\r\nabcd"), iotest.ErrReader(readErr))) |
| 238 | if _, err := io.ReadAll(r); err != readErr { |
| 239 | t.Errorf("expected %v, got %v", readErr, err) |
| 240 | } |
| 241 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…