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

Method testRecvmsgIntoArray

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

Source from the content-addressed store, hash-verified

3834 self.sendToServer(MSG)
3835
3836 def testRecvmsgIntoArray(self):
3837 # Receive into an array rather than the usual bytearray.
3838 buf = array.array("B", [0] * len(MSG))
3839 nbytes, ancdata, flags, addr = self.serv_sock.recvmsg_into([buf])
3840 self.assertEqual(nbytes, len(MSG))
3841 self.assertEqual(buf.tobytes(), MSG)
3842 self.checkRecvmsgAddress(addr, self.cli_addr)
3843 self.assertEqual(ancdata, [])
3844 self.checkFlags(flags, eor=True)
3845
3846 def _testRecvmsgIntoArray(self):
3847 self.sendToServer(MSG)

Callers

nothing calls this directly

Calls 6

lenFunction · 0.85
recvmsg_intoMethod · 0.80
checkFlagsMethod · 0.80
assertEqualMethod · 0.45
tobytesMethod · 0.45
checkRecvmsgAddressMethod · 0.45

Tested by

no test coverage detected