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

Function test_channel_send_empty_buffer

tests/python/test_data_model.py:23–29  ·  view source on GitHub ↗

Empty buffer can be sent and received through channel.

()

Source from the content-addressed store, hash-verified

21
22
23def test_channel_send_empty_buffer() -> None:
24 """Empty buffer can be sent and received through channel."""
25 c = chan(1)
26 buf = rt.asarray(np.array([], dtype=np.float64))
27 c.send(buf)
28 received = c.recv()
29 assert len(received.numpy()) == 0
30
31
32def test_channel_capacity_1_fifo() -> None:

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected