pub struct WasmCoverage {
pub functions_covered: usize,
pub functions_total: usize,
pub scripts: Vec<ScriptCoverage>,
}Expand description
WASM-specific coverage data
Fields§
§functions_covered: usizeFunctions covered in WASM modules
functions_total: usizeTotal functions in WASM modules
scripts: Vec<ScriptCoverage>WASM scripts
Implementations§
Source§impl WasmCoverage
impl WasmCoverage
Sourcepub fn coverage_percent(&self) -> f64
pub fn coverage_percent(&self) -> f64
Calculate coverage percentage
Trait Implementations§
Source§impl Clone for WasmCoverage
impl Clone for WasmCoverage
Source§fn clone(&self) -> WasmCoverage
fn clone(&self) -> WasmCoverage
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 moreAuto Trait Implementations§
impl Freeze for WasmCoverage
impl RefUnwindSafe for WasmCoverage
impl Send for WasmCoverage
impl Sync for WasmCoverage
impl Unpin for WasmCoverage
impl UnsafeUnpin for WasmCoverage
impl UnwindSafe for WasmCoverage
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