MCPcopy
hub / github.com/dask/dask / test_funcname

Function test_funcname

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

Source from the content-addressed store, hash-verified

423
424
425def test_funcname():
426 def foo(a, b, c):
427 pass
428
429 assert funcname(foo) == "foo"
430 assert funcname(functools.partial(foo, a=1)) == "foo"
431 assert funcname(M.sum) == "sum"
432 assert funcname(lambda: 1) == "lambda"
433
434 class Foo:
435 pass
436
437 assert funcname(Foo) == "Foo"
438 assert "Foo" in funcname(Foo())
439
440
441def test_funcname_long():

Callers

nothing calls this directly

Calls 2

funcnameFunction · 0.90
FooClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…