MCPcopy Index your code
hub / github.com/huggingface/diffusers / is_test

Function is_test

utils/tests_fetcher.py:799–804  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

797
798 # Utility that tells us if a given file is a test (taking test examples into account)
799 def is_test(fname):
800 if fname.startswith("tests"):
801 return True
802 if fname.startswith("examples") and fname.split(os.path.sep)[-1].startswith("test"):
803 return True
804 return False
805
806 # Build the test map
807 test_map = {module: [f for f in deps if is_test(f)] for module, deps in reverse_map.items()}

Callers 1

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…