MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_flush_and_readinto

Method test_flush_and_readinto

Lib/test/test_io.py:2486–2491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2484 self.check_flush_and_read(lambda bufio, *args: bufio.read(*args))
2485
2486 def test_flush_and_readinto(self):
2487 def _readinto(bufio, n=-1):
2488 b = bytearray(n if n >= 0 else 9999)
2489 n = bufio.readinto(b)
2490 return bytes(b[:n])
2491 self.check_flush_and_read(_readinto)
2492
2493 def test_flush_and_peek(self):
2494 def _peek(bufio, n=-1):

Callers

nothing calls this directly

Calls 1

check_flush_and_readMethod · 0.95

Tested by

no test coverage detected