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

Function test_channel_capacity_1_fifo

tests/python/test_data_model.py:32–40  ·  view source on GitHub ↗

Channel with capacity 1 maintains FIFO order.

()

Source from the content-addressed store, hash-verified

30
31
32def test_channel_capacity_1_fifo() -> None:
33 """Channel with capacity 1 maintains FIFO order."""
34 c = chan(1)
35
36 for i in range(5):
37 buf = rt.asarray(np.array([float(i)]))
38 c.send(buf)
39 received = c.recv()
40 assert received.scalar() == float(i)
41
42
43def test_par_threshold_boundary() -> None:

Callers

nothing calls this directly

Calls 5

chanFunction · 0.90
scalarMethod · 0.80
asarrayMethod · 0.45
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected