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

Function run_llvm_cov

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

Run cargo llvm-cov on a file.

(file_path: str)

Source from the content-addressed store, hash-verified

5
6
7def run_llvm_cov(file_path: str):
8 """Run cargo llvm-cov on a file."""
9 if file_path.endswith(".py"):
10 command = ["cargo", "llvm-cov", "--no-report", "run", "--", file_path]
11 subprocess.call(command)
12
13
14def iterate_files(folder: str):

Callers 1

iterate_filesFunction · 0.85

Calls 2

endswithMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected