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

Method testRecvmsgShorter

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

Source from the content-addressed store, hash-verified

3599 self.sendToServer(MSG)
3600
3601 def testRecvmsgShorter(self):
3602 # Receive a message smaller than buffer.
3603 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
3604 len(MSG) + 42)
3605 self.assertEqual(msg, MSG)
3606 self.checkRecvmsgAddress(addr, self.cli_addr)
3607 self.assertEqual(ancdata, [])
3608 self.checkFlags(flags, eor=True)
3609
3610 def _testRecvmsgShorter(self):
3611 self.sendToServer(MSG)

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
checkFlagsMethod · 0.80
doRecvmsgMethod · 0.45
assertEqualMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected