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

Method checkFDs

Lib/test/test_socket.py:3951–3956  ·  view source on GitHub ↗
(self, fds)

Source from the content-addressed store, hash-verified

3949 return fds
3950
3951 def checkFDs(self, fds):
3952 # Check that the file descriptors in the given list contain
3953 # their correct list indices as ASCII numbers.
3954 for n, fd in enumerate(fds):
3955 os.lseek(fd, 0, os.SEEK_SET)
3956 self.assertEqual(os.read(fd, 1024), str(n).encode())
3957
3958 def registerRecvmsgResult(self, result):
3959 self.addCleanup(self.closeRecvmsgFDs, result)

Callers 3

checkRecvmsgFDsMethod · 0.95
checkTruncatedArrayMethod · 0.95

Calls 5

enumerateFunction · 0.85
strFunction · 0.85
assertEqualMethod · 0.45
readMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected