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

Method test_send_recv

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

Source from the content-addressed store, hash-verified

6
7class TestChannel:
8 def test_send_recv(self) -> None:
9 c = rt.chan(10)
10 c.send(rt.asarray(np.array([1.0, 2.0, 3.0])))
11 buf = c.recv()
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)

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