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

Method testRecvmsg

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

Source from the content-addressed store, hash-verified

3576 # recvmsg_into(), and can use any socket type.
3577
3578 def testRecvmsg(self):
3579 # Receive a simple message with recvmsg[_into]().
3580 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, len(MSG))
3581 self.assertEqual(msg, MSG)
3582 self.checkRecvmsgAddress(addr, self.cli_addr)
3583 self.assertEqual(ancdata, [])
3584 self.checkFlags(flags, eor=True)
3585
3586 def _testRecvmsg(self):
3587 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