pub struct CoverageMatrix {
pub tools: Vec<String>,
pub packs: Vec<String>,
pub cells: BTreeMap<String, BTreeMap<String, CoverageCell>>,
pub uncovered_tools: Vec<String>,
}Expand description
Aggregate coverage view: one row per tool, one column per pack.
Fields§
§tools: Vec<String>Tool names, in the order returned by list_tools.
packs: Vec<String>Pack names, in the order they were passed in.
cells: BTreeMap<String, BTreeMap<String, CoverageCell>>cells[tool][pack] — guaranteed to be present for every
declared (tool, pack) pair.
uncovered_tools: Vec<String>Tools that no pack covers. Equivalent to
tools.iter().filter(|t| every cell is Uncovered). Surfaced
here for --strict exit-code logic.
Implementations§
Source§impl CoverageMatrix
impl CoverageMatrix
Sourcepub fn build(
packs: &[(String, InvariantFile)],
tools: &[Tool],
detector: &DestructiveDetector,
) -> Self
pub fn build( packs: &[(String, InvariantFile)], tools: &[Tool], detector: &DestructiveDetector, ) -> Self
Builds a matrix from the parsed packs and a live tool list.
Each (pack_name, file) tuple is one entry of the result; the
caller is responsible for resolving extends and applying
parameter overrides before passing the file in.
Sourcepub fn covered_cells(&self) -> usize
pub fn covered_cells(&self) -> usize
Number of (tool, pack) cells that are Covered.
Sourcepub fn total_cells(&self) -> usize
pub fn total_cells(&self) -> usize
Total number of (tool, pack) cells.
Trait Implementations§
Source§impl Clone for CoverageMatrix
impl Clone for CoverageMatrix
Source§fn clone(&self) -> CoverageMatrix
fn clone(&self) -> CoverageMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoverageMatrix
impl Debug for CoverageMatrix
Auto Trait Implementations§
impl Freeze for CoverageMatrix
impl RefUnwindSafe for CoverageMatrix
impl Send for CoverageMatrix
impl Sync for CoverageMatrix
impl Unpin for CoverageMatrix
impl UnsafeUnpin for CoverageMatrix
impl UnwindSafe for CoverageMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more