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

Method createAndSendFDs

Lib/test/test_socket.py:3973–3981  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

3971 os.close(fd)
3972
3973 def createAndSendFDs(self, n):
3974 # Send n new file descriptors created by newFDs() to the
3975 # server, with the constant MSG as the non-ancillary data.
3976 self.assertEqual(
3977 self.sendmsgToServer([MSG],
3978 [(socket.SOL_SOCKET,
3979 socket.SCM_RIGHTS,
3980 array.array("i", self.newFDs(n)))]),
3981 len(MSG))
3982
3983 def checkRecvmsgFDs(self, numfds, result, maxcmsgs=1, ignoreflags=0):
3984 # Check that constant MSG was received with numfds file

Callers 12

_testMultipleFDPassMethod · 0.95
_testFDPassCMSG_SPACEMethod · 0.95
_testFDPassCMSG_LENMethod · 0.95
_testCmsgTrunc0Method · 0.95
_testCmsgTrunc1Method · 0.95
_testCmsgTrunc2IntMethod · 0.95
_testCmsgTruncLen0Method · 0.95
_testCmsgTruncLen1Method · 0.95

Calls 4

newFDsMethod · 0.95
lenFunction · 0.85
sendmsgToServerMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected