MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / test_multiple_send_recv

Method test_multiple_send_recv

tests/python/test_channel.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 np.testing.assert_array_equal(buf.numpy(), [1.0, 2.0, 3.0])
13
14 def test_multiple_send_recv(self) -> None:
15 c = rt.chan(10)
16 for i in range(5):
17 c.send(rt.asarray(np.array([float(i)])))
18 for i in range(5):
19 buf = c.recv()
20 assert buf.numpy()[0] == float(i)
21
22
23class TestSelect:

Callers

nothing calls this directly

Calls 5

numpyMethod · 0.80
chanMethod · 0.45
sendMethod · 0.45
asarrayMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected