MCPcopy
hub / github.com/ray-project/ray / test_put_local_get

Function test_put_local_get

python/ray/tests/test_channel.py:36–50  ·  view source on GitHub ↗
(ray_start_regular)

Source from the content-addressed store, hash-verified

34 reason="Requires Linux or Mac.",
35)
36def test_put_local_get(ray_start_regular):
37 driver_actor = create_driver_actor()
38 chan = ray_channel.Channel(
39 None,
40 [
41 (driver_actor, get_actor_node_id(driver_actor)),
42 ],
43 1000,
44 )
45
46 num_writes = 1000
47 for i in range(num_writes):
48 val = i.to_bytes(8, "little")
49 chan.write(val)
50 assert chan.read() == val
51
52
53@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 6

writeMethod · 0.95
readMethod · 0.95
get_actor_node_idFunction · 0.90
to_bytesMethod · 0.80
create_driver_actorFunction · 0.70
rangeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…