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

Method read

Lib/test/test_io.py:147–153  ·  view source on GitHub ↗
(self, n=None)

Source from the content-addressed store, hash-verified

145class MockRawIO(MockRawIOWithoutRead):
146
147 def read(self, n=None):
148 self._reads += 1
149 try:
150 return self._read_stack.pop(0)
151 except:
152 self._extraneous_reads += 1
153 return b""
154
155class CMockRawIO(MockRawIO, io.RawIOBase):
156 pass

Callers 15

readMethod · 0.45
readMethod · 0.45
read_opsMethod · 0.45
large_file_opsMethod · 0.45
do_testMethod · 0.45
test_destructorMethod · 0.45
test_close_flushesMethod · 0.45
test_read_closedMethod · 0.45
test_RawIOBase_readMethod · 0.45
test_openerMethod · 0.45
check_path_succeedsMethod · 0.45

Calls 1

popMethod · 0.45

Tested by

no test coverage detected