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

Method testFDPassCMSG_LEN

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

Source from the content-addressed store, hash-verified

4144 self.createAndSendFDs(4)
4145
4146 def testFDPassCMSG_LEN(self):
4147 # Test using CMSG_LEN() to calculate ancillary buffer size.
4148 self.checkRecvmsgFDs(1,
4149 self.doRecvmsg(self.serv_sock, len(MSG),
4150 socket.CMSG_LEN(4 * SIZEOF_INT)),
4151 # RFC 3542 says implementations may set
4152 # MSG_CTRUNC if there isn't enough space
4153 # for trailing padding.
4154 ignoreflags=socket.MSG_CTRUNC)
4155
4156 def _testFDPassCMSG_LEN(self):
4157 self.createAndSendFDs(1)

Callers

nothing calls this directly

Calls 2

checkRecvmsgFDsMethod · 0.95
doRecvmsgMethod · 0.45

Tested by

no test coverage detected