pub struct ScopeCoverage {
pub relevant: Vec<String>,
pub tested: Vec<String>,
pub ratio: f64,
pub lines_relevant: Option<usize>,
pub lines_tested: Option<usize>,
}Expand description
Scope coverage for a gate.
Fields§
§relevant: Vec<String>Files in scope for the gate.
tested: Vec<String>Files actually tested.
ratio: f64Coverage ratio (tested/relevant, 0.0-1.0).
lines_relevant: Option<usize>Lines in scope (optional, for line-level gates).
lines_tested: Option<usize>Lines actually tested (optional, for line-level gates).
Trait Implementations§
Source§impl Clone for ScopeCoverage
impl Clone for ScopeCoverage
Source§fn clone(&self) -> ScopeCoverage
fn clone(&self) -> ScopeCoverage
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 ScopeCoverage
impl Debug for ScopeCoverage
Source§impl<'de> Deserialize<'de> for ScopeCoverage
impl<'de> Deserialize<'de> for ScopeCoverage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScopeCoverage
impl RefUnwindSafe for ScopeCoverage
impl Send for ScopeCoverage
impl Sync for ScopeCoverage
impl Unpin for ScopeCoverage
impl UnsafeUnpin for ScopeCoverage
impl UnwindSafe for ScopeCoverage
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