pub fn collect_coverage(
v8_dir: &Path,
out_js_root: &Path,
out_root: &Path,
source_root: &Path,
) -> Result<CoverageReport>Expand description
Collect coverage from a finished run and attribute it to .bynk source.
v8_dir— the directoryNODE_V8_COVERAGEwas pointed at.out_js_root— where the executed.jsand tsc’s.js.maplive.out_root— where the emitted.tsand the emitter’s.ts.maplive.source_root— the project root the.bynkpaths are relativised against.
Any file it cannot read or parse is skipped rather than failing the run — coverage is a report about a run that already happened, so a partial map should degrade the numbers, never abort. Reading the V8 directory is the one hard error surfaced (it is the runner’s own temp dir).