MCPcopy
hub / github.com/dask/dask / test_generator_consistent_names

Function test_generator_consistent_names

dask/array/tests/test_random.py:76–84  ·  view source on GitHub ↗
(generator_class)

Source from the content-addressed store, hash-verified

74
75
76def test_generator_consistent_names(generator_class):
77 state1 = generator_class(42)
78 state2 = generator_class(42)
79 assert sorted(state1.normal(size=(100, 100), chunks=(10, 10)).dask) == sorted(
80 state2.normal(size=(100, 100), chunks=(10, 10)).dask
81 )
82 assert sorted(
83 state1.normal(size=100, loc=4.5, scale=5.0, chunks=10).dask
84 ) == sorted(state2.normal(size=100, loc=4.5, scale=5.0, chunks=10).dask)
85
86
87def test_random(generator_class):

Callers

nothing calls this directly

Calls 2

generator_classFunction · 0.85
normalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…