← Về thư mục
tests/test_gateway_host_allowlist.py
- _Hub · class · L44-L51 — class _Hub
- emitter · method · L47-L48 — def emitter(self, root_frame_id)
- broadcast · method · L50-L51 — def broadcast(self, root_frame_id, event)
- daemon · function · L55-L86 — def daemon(tmp_path: Path)
- _speak · function · L89-L118 — def _speak(port: int, request: bytes) -> tuple[int, bytes]
- _get · function · L121-L128 — def _get(port: int, path: str, host: str | None, token: str | None = None) -> int
- test_a_forged_host_never_reaches_the_command_sink · function · L131-L157 — def test_a_forged_host_never_reaches_the_command_sink(daemon)
- test_the_host_check_runs_before_the_token_gate · function · L160-L175 — def test_the_host_check_runs_before_the_token_gate(daemon)
- test_a_forged_host_is_refused_on_every_surface · function · L187-L193 — def test_a_forged_host_is_refused_on_every_surface(daemon, path)
- test_a_forged_host_cannot_upgrade_the_websocket · function · L196-L215 — def test_a_forged_host_cannot_upgrade_the_websocket(daemon)
- test_the_real_loopback_hosts_still_work · function · L219-L225 — def test_the_real_loopback_hosts_still_work(daemon, hostname)
- test_an_absent_host_still_works · function · L228-L240 — def test_an_absent_host_still_works(daemon)
- test_the_right_hostname_on_the_wrong_port_is_refused · function · L243-L250 — def test_the_right_hostname_on_the_wrong_port_is_refused(daemon)