(t *testing.T)
| 211 | } |
| 212 | |
| 213 | func TestFrameReaderLineTooLong(t *testing.T) { |
| 214 | r := NewFrameReader(strings.NewReader("data: " + strings.Repeat("x", maxLineSize) + "\n\n")) |
| 215 | |
| 216 | _, err := r.Next() |
| 217 | |
| 218 | require.ErrorIs(t, err, bufio.ErrTooLong) |
| 219 | } |
| 220 | |
| 221 | func TestFrameReaderReadError(t *testing.T) { |
| 222 | readErr := io.ErrClosedPipe |
nothing calls this directly
no test coverage detected