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

Function test_flat_map

python/ray/data/tests/test_context_propagation.py:107–114  ·  view source on GitHub ↗
(
    ray_start_regular_shared,
)

Source from the content-addressed store, hash-verified

105
106
107def test_flat_map(
108 ray_start_regular_shared,
109):
110 _test_updating_context_after_dataset_creation(
111 lambda: ray.data.range(1).flat_map(
112 lambda _: [{"id": DataContext.get_current().get_config("foo")}]
113 )
114 )
115
116
117def test_map_batches(

Callers

nothing calls this directly

Calls 4

flat_mapMethod · 0.80
get_configMethod · 0.45
get_currentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…