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

Method testRecvmsgEOF

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

Source from the content-addressed store, hash-verified

3726 # or recvmsg_into().
3727
3728 def testRecvmsgEOF(self):
3729 # Receive end-of-stream indicator (b"", peer socket closed).
3730 msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock, 1024)
3731 self.assertEqual(msg, b"")
3732 self.checkRecvmsgAddress(addr, self.cli_addr)
3733 self.assertEqual(ancdata, [])
3734 self.checkFlags(flags, eor=None) # Might not have end-of-record marker
3735
3736 def _testRecvmsgEOF(self):
3737 self.cli_sock.close()

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