(http_protocol_cls: type[HTTPProtocol])
| 527 | |
| 528 | |
| 529 | async def test_invalid_http(http_protocol_cls: type[HTTPProtocol]): |
| 530 | app = Response("Hello, world", media_type="text/plain") |
| 531 | |
| 532 | protocol = get_connected_protocol(app, http_protocol_cls) |
| 533 | protocol.data_received(b"x" * 100000) |
| 534 | assert protocol.transport.is_closing() |
| 535 | |
| 536 | |
| 537 | async def test_app_exception(http_protocol_cls: type[HTTPProtocol]): |
nothing calls this directly
no test coverage detected