MCPcopy Index your code
hub / github.com/RustPython/RustPython / testRecvmsgTrunc

Method testRecvmsgTrunc

Lib/test/test_socket.py:3613–3620  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3611 self.sendToServer(MSG)
3612
3613 def testRecvmsgTrunc(self):
3614 # Receive part of message, check for truncation indicators.
3615 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
3616 len(MSG) - 3)
3617 self.assertEqual(msg, MSG[:-3])
3618 self.checkRecvmsgAddress(addr, self.cli_addr)
3619 self.assertEqual(ancdata, [])
3620 self.checkFlags(flags, eor=False)
3621
3622 def _testRecvmsgTrunc(self):
3623 self.sendToServer(MSG)

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
checkFlagsMethod · 0.80
doRecvmsgMethod · 0.45
assertEqualMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected