MCPcopy Create free account
hub / github.com/cli/cli / TestFrameReaderLineTooLong

Function TestFrameReaderLineTooLong

internal/eventstream/sse_test.go:213–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

211}
212
213func 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
221func TestFrameReaderReadError(t *testing.T) {
222 readErr := io.ErrClosedPipe

Callers

nothing calls this directly

Calls 2

NextMethod · 0.95
NewFrameReaderFunction · 0.85

Tested by

no test coverage detected