MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / bytes_gen

Function bytes_gen

tests/test_web_request.py:250–252  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

248
249def test_range_to_slice_head() -> None:
250 def bytes_gen(size):
251 for i in range(size):
252 yield i % 256
253
254 payload = bytearray(bytes_gen(10000))
255 req = make_mocked_request(

Callers 4

test_range_to_slice_headFunction · 0.85
test_range_to_slice_midFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected