MCPcopy Index your code
hub / github.com/RustPython/RustPython / iterate_files

Function iterate_files

scripts/cargo-llvm-cov.py:14–19  ·  view source on GitHub ↗

Iterate over all files in a folder.

(folder: str)

Source from the content-addressed store, hash-verified

12
13
14def iterate_files(folder: str):
15 """Iterate over all files in a folder."""
16 for root, _, files in os.walk(folder):
17 for file in files:
18 file_path = os.path.join(root, file)
19 run_llvm_cov(file_path)
20
21
22if __name__ == "__main__":

Callers 1

cargo-llvm-cov.pyFile · 0.85

Calls 3

run_llvm_covFunction · 0.85
walkMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected