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

Method _testBCM

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

Source from the content-addressed store, hash-verified

2318 @unittest.skipUnless(hasattr(socket, "CAN_BCM"),
2319 'socket.CAN_BCM required for this test.')
2320 def _testBCM(self):
2321 cf, addr = self.cli.recvfrom(self.bufsize)
2322 self.assertEqual(self.cf, cf)
2323 can_id, can_dlc, data = self.dissect_can_frame(cf)
2324 self.assertEqual(self.can_id, can_id)
2325 self.assertEqual(self.data, data)
2326
2327 @unittest.skipUnless(hasattr(socket, "CAN_BCM"),
2328 'socket.CAN_BCM required for this test.')

Callers

nothing calls this directly

Calls 3

dissect_can_frameMethod · 0.95
recvfromMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected