(path)
| 20 | ] |
| 21 | |
| 22 | def module_name(path): |
| 23 | if path in MAPPING: |
| 24 | path = MAPPING[path] |
| 25 | if any(path.startswith(dirpath) for dirpath in HEADER_MODULE_PATHS): |
| 26 | return path |
| 27 | if path.endswith(".h"): |
| 28 | return path[:-2] |
| 29 | if path.endswith(".c"): |
| 30 | return path[:-2] |
| 31 | if path.endswith(".cpp"): |
| 32 | return path[:-4] |
| 33 | return None |
| 34 | |
| 35 | files = dict() |
| 36 | deps: Dict[str, Set[str]] = dict() |
no outgoing calls
no test coverage detected