Get all rust files in the given path
(path, ignoreTest=False, ignoreMock=False)
| 5 | |
| 6 | |
| 7 | def getFiles(path, ignoreTest=False, ignoreMock=False) -> set: |
| 8 | """Get all rust files in the given path""" |
| 9 | return ( |
| 10 | set(glob.glob(path + "/**/*.rs", recursive=True)) |
| 11 | - set(glob.glob(path + "/**/node_modules/**/*.rs", recursive=True)) |
| 12 | - set(glob.glob(path + "/**/target/**/*.rs", recursive=True)) |
| 13 | - (set(glob.glob(path + "/**/*test*/**/*.rs", recursive=True)) if ignoreTest else set()) |
| 14 | - (set(glob.glob(path + "/**/*mock*/**/*.rs", recursive=True)) if ignoreMock else set()) |
| 15 | ) |
| 16 | |
| 17 | |
| 18 | def readFile(path) -> str: |
no outgoing calls
no test coverage detected