pub struct ParseOutput<P: ParseDiagnostic> {
pub coverage: HashMap<String, Vec<LineCoverage>>,
pub branches: Option<HashMap<String, Vec<BranchCoverage>>>,
pub diagnostics: Vec<P>,
}Expand description
Result of parsing coverage data: coverage map + non-fatal diagnostics.
Generic over P: ParseDiagnostic so the LCOV adapter (crap4rs),
the future Istanbul adapter (crap4ts), and any sibling adapter can
thread their own diagnostic shape through one shared analyzer
pipeline. Per ADR D9, Vec<P> storage of potentially thousands of
parse diagnostics avoids the per-element Box<dyn ParseDiagnostic>
heap-allocation cost.
Fields§
§coverage: HashMap<String, Vec<LineCoverage>>§branches: Option<HashMap<String, Vec<BranchCoverage>>>Branch coverage data from BRDA records, keyed by file path.
None when no BRDA records were encountered in the entire input.
diagnostics: Vec<P>Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for ParseOutput<P>
impl<P> RefUnwindSafe for ParseOutput<P>where
P: RefUnwindSafe,
impl<P> Send for ParseOutput<P>where
P: Send,
impl<P> Sync for ParseOutput<P>where
P: Sync,
impl<P> Unpin for ParseOutput<P>where
P: Unpin,
impl<P> UnsafeUnpin for ParseOutput<P>
impl<P> UnwindSafe for ParseOutput<P>where
P: UnwindSafe,
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