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

Method test_select_default

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

Source from the content-addressed store, hash-verified

30 assert val.numpy()[0] == 42.0
31
32 def test_select_default(self) -> None:
33 ch_a = rt.chan(10)
34 ch_b = rt.chan(10)
35 idx, val = select(RecvCase(ch_a), RecvCase(ch_b), default=True)
36 assert idx == -1
37 assert val is None
38
39 def test_select_second_channel(self) -> None:
40 ch_a = rt.chan(10)

Callers

nothing calls this directly

Calls 1

chanMethod · 0.45

Tested by

no test coverage detected