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

Method testRecvmsgShortAncillaryBuf

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

Source from the content-addressed store, hash-verified

3726 self.sendToServer(MSG)
3727
3728 def testRecvmsgShortAncillaryBuf(self):
3729 # Test ancillary data buffer too small to hold any ancillary data.
3730 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
3731 len(MSG), 1)
3732 self.assertEqual(msg, MSG)
3733 self.checkRecvmsgAddress(addr, self.cli_addr)
3734 self.assertEqual(ancdata, [])
3735 self.checkFlags(flags, eor=True)
3736
3737 def _testRecvmsgShortAncillaryBuf(self):
3738 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