(fname)
| 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()} |
no test coverage detected
searching dependent graphs…