Skip to main content

uncovered_changed_lines_ts

Function uncovered_changed_lines_ts 

Source
pub fn uncovered_changed_lines_ts(
    changed: &BTreeMap<String, BTreeSet<u64>>,
    uncovered: &BTreeMap<String, BTreeSet<u64>>,
) -> Vec<Uncovered>
Expand description

Pure: every changed line a TypeScript coverage report marks uncovered. uncovered is the per-file set of uncovered lines (crate::coverage::measure_patch_typescript) — statements the suite never ran and the source lines of branches a path of which it never took — keyed by root-relative path, as changed is. A changed file absent from uncovered was not measured (a test file, a declaration file, or a coverage-exempt file excluded from the run) and contributes nothing; a changed line not in its set (a comment or blank) has nothing to cover.

The TypeScript counterpart to uncovered_changed_lines: where coverage.py splits missing lines from missing branches, vitest’s report is reduced to one uncovered-line set per file upstream, so this is the plain intersection.