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

Method _testFDPassSimple

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

Source from the content-addressed store, hash-verified

4013 len(MSG), 10240))
4014
4015 def _testFDPassSimple(self):
4016 self.assertEqual(
4017 self.sendmsgToServer(
4018 [MSG],
4019 [(socket.SOL_SOCKET,
4020 socket.SCM_RIGHTS,
4021 array.array("i", self.newFDs(1)).tobytes())]),
4022 len(MSG))
4023
4024 def testMultipleFDPass(self):
4025 # Pass multiple FDs in a single array.

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected