MCPcopy
hub / github.com/aio-libs/aiohttp / test_readuntil_limit

Function test_readuntil_limit

tests/test_parser_buffer.py:142–148  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

140
141
142def test_readuntil_limit(buf):
143 p = buf.readuntil(b'\n', 4)
144 next(p)
145 p.send(b'1')
146 p.send(b'234')
147 with pytest.raises(errors.LineLimitExceededParserError):
148 p.send(b'5')
149
150
151def test_readuntil_limit2(buf):

Callers

nothing calls this directly

Calls 2

readuntilMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected