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

Method read1

Lib/test/test_io.py:1039–1041  ·  view source on GitHub ↗

Returns no more than 5 bytes at once

(self, size)

Source from the content-addressed store, hash-verified

1037 self.avail = self.avail[size:]
1038 return result
1039 def read1(self, size):
1040 """Returns no more than 5 bytes at once"""
1041 return self.read(min(size, 5))
1042 tests = (
1043 # (test method, total data available, read buffer size, expected
1044 # read size)

Callers 15

test_read1Method · 0.45
test_read1_0Method · 0.45
test_read1_10Method · 0.45
test_read1Method · 0.45
test_read1_0Method · 0.45
test_read1_10Method · 0.45
test_read1Method · 0.45
rMethod · 0.45
test_read1_unboundedMethod · 0.45
test_read1_boundedMethod · 0.45

Calls 2

readMethod · 0.95
minFunction · 0.85

Tested by

no test coverage detected