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

Method meth_from_sock

Lib/test/test_socket.py:6756–6759  ·  view source on GitHub ↗
(self, sock)

Source from the content-addressed store, hash-verified

6754 return b''.join(received)
6755
6756 def meth_from_sock(self, sock):
6757 # Depending on the mixin class being run return either send()
6758 # or sendfile() method implementation.
6759 return getattr(sock, "_sendfile_use_send")
6760
6761 # regular file
6762

Callers 10

_testRegularFileMethod · 0.95
_testEmptyFileSendMethod · 0.95
_testOffsetMethod · 0.95
_testCountMethod · 0.95
_testCountSmallMethod · 0.95
_testCountWithOffsetMethod · 0.95
_testNonBlockingMethod · 0.95
_testWithTimeoutMethod · 0.95
test_errorsMethod · 0.95

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected