MCPcopy Index your code
hub / github.com/python/cpython / testRecvmsgShorter

Method testRecvmsgShorter

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

Source from the content-addressed store, hash-verified

3702 self.sendToServer(MSG)
3703
3704 def testRecvmsgShorter(self):
3705 # Receive a message smaller than buffer.
3706 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
3707 len(MSG) + 42)
3708 self.assertEqual(msg, MSG)
3709 self.checkRecvmsgAddress(addr, self.cli_addr)
3710 self.assertEqual(ancdata, [])
3711 self.checkFlags(flags, eor=True)
3712
3713 def _testRecvmsgShorter(self):
3714 self.sendToServer(MSG)

Callers

nothing calls this directly

Calls 4

checkFlagsMethod · 0.80
doRecvmsgMethod · 0.45
assertEqualMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected