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

Method testFDPassCMSG_LEN

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

Source from the content-addressed store, hash-verified

4041 self.createAndSendFDs(4)
4042
4043 def testFDPassCMSG_LEN(self):
4044 # Test using CMSG_LEN() to calculate ancillary buffer size.
4045 self.checkRecvmsgFDs(1,
4046 self.doRecvmsg(self.serv_sock, len(MSG),
4047 socket.CMSG_LEN(4 * SIZEOF_INT)),
4048 # RFC 3542 says implementations may set
4049 # MSG_CTRUNC if there isn't enough space
4050 # for trailing padding.
4051 ignoreflags=socket.MSG_CTRUNC)
4052
4053 def _testFDPassCMSG_LEN(self):
4054 self.createAndSendFDs(1)

Callers

nothing calls this directly

Calls 3

checkRecvmsgFDsMethod · 0.95
lenFunction · 0.85
doRecvmsgMethod · 0.45

Tested by

no test coverage detected