pub struct Report {
pub findings: Vec<Finding>,
pub unavailable: Vec<Unavailable>,
pub contracts_checked: usize,
pub sources: BTreeMap<String, String>,
}Fields§
§findings: Vec<Finding>Things brake could not do. Any entry here means exit 2: the gate is
broken, which is a different problem from the API being broken.
contracts_checked: usize§sources: BTreeMap<String, String>The text of every artifact a span points into, keyed by the span’s
file. Carried on the report so a renderer can show the offending
line, including for a baseline that only exists as a git blob.
Implementations§
Source§impl Report
impl Report
pub fn new( findings: Vec<Finding>, unavailable: Vec<Unavailable>, contracts_checked: usize, ) -> Self
Sourcepub fn absorb(&mut self, other: Report)
pub fn absorb(&mut self, other: Report)
Merge another report into this one, keeping the contract count additive.
Sourcepub fn finalise(&mut self)
pub fn finalise(&mut self)
Sort into a stable order, so two runs on the same inputs emit the same bytes regardless of the order contracts happened to be visited in.
pub fn verdict(&self, threshold: Severity) -> Verdict
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.