Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
249
def
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_head
Function · 0.85
test_range_to_slice_mid
Function · 0.85
test_range_to_slice_tail_start
Function · 0.85
test_range_to_slice_tail_stop
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected