MCPcopy
hub / github.com/python-trio/trio / test_msg_trunc

Function test_msg_trunc

src/trio/_tests/test_fakenet.py:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61async def test_msg_trunc() -> None:
62 fn()
63 s1 = trio.socket.socket(type=trio.socket.SOCK_DGRAM)
64 s2 = trio.socket.socket(type=trio.socket.SOCK_DGRAM)
65 await s1.bind(("127.0.0.1", 0))
66 await s2.sendto(b"xyz", s1.getsockname())
67 await s1.recvfrom(10)
68
69
70async def test_recv_methods() -> None:

Callers

nothing calls this directly

Calls 6

fnFunction · 0.70
socketMethod · 0.45
bindMethod · 0.45
sendtoMethod · 0.45
getsocknameMethod · 0.45
recvfromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…