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

Method _testCount

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

Source from the content-addressed store, hash-verified

6832 # count
6833
6834 def _testCount(self):
6835 address = self.serv.getsockname()
6836 file = open(os_helper.TESTFN, 'rb')
6837 sock = socket.create_connection(address,
6838 timeout=support.LOOPBACK_TIMEOUT)
6839 with sock, file:
6840 count = 5000007
6841 meth = self.meth_from_sock(sock)
6842 sent = meth(file, count=count)
6843 self.assertEqual(sent, count)
6844 self.assertEqual(file.tell(), count)
6845
6846 def testCount(self):
6847 count = 5000007

Callers

nothing calls this directly

Calls 7

meth_from_sockMethod · 0.95
methFunction · 0.85
openFunction · 0.50
getsocknameMethod · 0.45
create_connectionMethod · 0.45
assertEqualMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected