MCPcopy Create free account
hub / github.com/dask/dask / test_dispatch_variadic_on_first_argument

Function test_dispatch_variadic_on_first_argument

dask/tests/test_utils.py:184–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def test_dispatch_variadic_on_first_argument():
185 foo = Dispatch()
186 foo.register(int, lambda a, b: a + b)
187 foo.register(float, lambda a, b: a - b)
188
189 assert foo(1, 2) == 3
190 assert foo(1.0, 2.0) == -1
191
192
193def test_dispatch_lazy():

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
DispatchClass · 0.90
fooFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…