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

Method _testCountSmall

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

Source from the content-addressed store, hash-verified

6853 # count small
6854
6855 def _testCountSmall(self):
6856 address = self.serv.getsockname()
6857 file = open(os_helper.TESTFN, 'rb')
6858 sock = socket.create_connection(address,
6859 timeout=support.LOOPBACK_TIMEOUT)
6860 with sock, file:
6861 count = 1
6862 meth = self.meth_from_sock(sock)
6863 sent = meth(file, count=count)
6864 self.assertEqual(sent, count)
6865 self.assertEqual(file.tell(), count)
6866
6867 def testCountSmall(self):
6868 count = 1

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