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

Method testRecvmsg

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

Source from the content-addressed store, hash-verified

3679 # recvmsg_into(), and can use any socket type.
3680
3681 def testRecvmsg(self):
3682 # Receive a simple message with recvmsg[_into]().
3683 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, len(MSG))
3684 self.assertEqual(msg, MSG)
3685 self.checkRecvmsgAddress(addr, self.cli_addr)
3686 self.assertEqual(ancdata, [])
3687 self.checkFlags(flags, eor=True)
3688
3689 def _testRecvmsg(self):
3690 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