MCPcopy Index your code
hub / github.com/python/cpython / test_readline_eof

Method test_readline_eof

Lib/test/test_asyncio/test_streams.py:341–347  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 self.assertEqual(b'line2\nline3\n', stream._buffer)
340
341 def test_readline_eof(self):
342 stream = asyncio.StreamReader(loop=self.loop)
343 stream.feed_data(b'some data')
344 stream.feed_eof()
345
346 line = self.loop.run_until_complete(stream.readline())
347 self.assertEqual(b'some data', line)
348
349 def test_readline_empty_eof(self):
350 stream = asyncio.StreamReader(loop=self.loop)

Callers

nothing calls this directly

Calls 5

feed_dataMethod · 0.95
feed_eofMethod · 0.95
readlineMethod · 0.95
run_until_completeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected