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

Function test_simple_binary

tests/test_websocket_parser.py:353–359  ·  view source on GitHub ↗
(
    out: WebSocketDataQueue, parser: PatchableWebSocketReader
)

Source from the content-addressed store, hash-verified

351
352
353def test_simple_binary(
354 out: WebSocketDataQueue, parser: PatchableWebSocketReader
355) -> None:
356 data = build_frame(b"binary", WSMsgType.BINARY)
357 parser._feed_data(data)
358 res = out._buffer[0]
359 assert res == ((WSMsgType.BINARY, b"binary", ""), 6)
360
361
362def test_one_byte_at_a_time(

Callers

nothing calls this directly

Calls 2

build_frameFunction · 0.85
_feed_dataMethod · 0.80

Tested by

no test coverage detected