MCPcopy Index your code
hub / github.com/python/cpython / testRecvmsgTrunc

Method testRecvmsgTrunc

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

Source from the content-addressed store, hash-verified

3714 self.sendToServer(MSG)
3715
3716 def testRecvmsgTrunc(self):
3717 # Receive part of message, check for truncation indicators.
3718 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
3719 len(MSG) - 3)
3720 self.assertEqual(msg, MSG[:-3])
3721 self.checkRecvmsgAddress(addr, self.cli_addr)
3722 self.assertEqual(ancdata, [])
3723 self.checkFlags(flags, eor=False)
3724
3725 def _testRecvmsgTrunc(self):
3726 self.sendToServer(MSG)

Callers

nothing calls this directly

Calls 4

checkFlagsMethod · 0.80
doRecvmsgMethod · 0.45
assertEqualMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected