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

Function test_funcname

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

funcnameFunction · 0.90
FooClass · 0.70

Tested by

no test coverage detected