pub struct IstanbulFileCoverage {
pub path: String,
pub fn_map: BTreeMap<String, IstanbulFunction>,
pub f: BTreeMap<String, u64>,
}Expand description
Subset of the Istanbul FileCoverage shape that fallow needs for CRAP
scoring. We do not emit statement / branch maps because fallow only needs
per-function call counts.
Fields§
§path: StringAbsolute path of the source file.
fn_map: BTreeMap<String, IstanbulFunction>Per-function records keyed by stable index (f0, f1, …).
f: BTreeMap<String, u64>Per-function hit counts, keyed identically to fn_map.
Trait Implementations§
Source§impl Clone for IstanbulFileCoverage
impl Clone for IstanbulFileCoverage
Source§fn clone(&self) -> IstanbulFileCoverage
fn clone(&self) -> IstanbulFileCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IstanbulFileCoverage
impl Debug for IstanbulFileCoverage
Source§impl<'de> Deserialize<'de> for IstanbulFileCoverage
impl<'de> Deserialize<'de> for IstanbulFileCoverage
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 IstanbulFileCoverage
impl RefUnwindSafe for IstanbulFileCoverage
impl Send for IstanbulFileCoverage
impl Sync for IstanbulFileCoverage
impl Unpin for IstanbulFileCoverage
impl UnsafeUnpin for IstanbulFileCoverage
impl UnwindSafe for IstanbulFileCoverage
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