(t *testing.T)
| 219 | } |
| 220 | |
| 221 | func TestFrameReaderReadError(t *testing.T) { |
| 222 | readErr := io.ErrClosedPipe |
| 223 | r := NewFrameReader(io.MultiReader(strings.NewReader("data: a\n"), iotest.ErrReader(readErr))) |
| 224 | |
| 225 | _, err := r.Next() |
| 226 | |
| 227 | require.ErrorIs(t, err, readErr) |
| 228 | } |
nothing calls this directly
no test coverage detected