#[non_exhaustive]pub struct CodeCoverageReportSummary {
pub line_coverage_percentage: Option<f64>,
pub lines_covered: Option<i32>,
pub lines_missed: Option<i32>,
pub branch_coverage_percentage: Option<f64>,
pub branches_covered: Option<i32>,
pub branches_missed: Option<i32>,
}
Expand description
Contains a summary of a code coverage report.
Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.
Branch coverage determines if your tests cover every possible branch of a control structure, such as an if
or case
statement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.line_coverage_percentage: Option<f64>
The percentage of lines that are covered by your tests.
lines_covered: Option<i32>
The number of lines that are covered by your tests.
lines_missed: Option<i32>
The number of lines that are not covered by your tests.
branch_coverage_percentage: Option<f64>
The percentage of branches that are covered by your tests.
branches_covered: Option<i32>
The number of conditional branches that are covered by your tests.
branches_missed: Option<i32>
The number of conditional branches that are not covered by your tests.
Implementations§
source§impl CodeCoverageReportSummary
impl CodeCoverageReportSummary
sourcepub fn line_coverage_percentage(&self) -> Option<f64>
pub fn line_coverage_percentage(&self) -> Option<f64>
The percentage of lines that are covered by your tests.
sourcepub fn lines_covered(&self) -> Option<i32>
pub fn lines_covered(&self) -> Option<i32>
The number of lines that are covered by your tests.
sourcepub fn lines_missed(&self) -> Option<i32>
pub fn lines_missed(&self) -> Option<i32>
The number of lines that are not covered by your tests.
sourcepub fn branch_coverage_percentage(&self) -> Option<f64>
pub fn branch_coverage_percentage(&self) -> Option<f64>
The percentage of branches that are covered by your tests.
sourcepub fn branches_covered(&self) -> Option<i32>
pub fn branches_covered(&self) -> Option<i32>
The number of conditional branches that are covered by your tests.
sourcepub fn branches_missed(&self) -> Option<i32>
pub fn branches_missed(&self) -> Option<i32>
The number of conditional branches that are not covered by your tests.
source§impl CodeCoverageReportSummary
impl CodeCoverageReportSummary
sourcepub fn builder() -> CodeCoverageReportSummaryBuilder
pub fn builder() -> CodeCoverageReportSummaryBuilder
Creates a new builder-style object to manufacture CodeCoverageReportSummary
.
Trait Implementations§
source§impl Clone for CodeCoverageReportSummary
impl Clone for CodeCoverageReportSummary
source§fn clone(&self) -> CodeCoverageReportSummary
fn clone(&self) -> CodeCoverageReportSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodeCoverageReportSummary
impl Debug for CodeCoverageReportSummary
impl StructuralPartialEq for CodeCoverageReportSummary
Auto Trait Implementations§
impl Freeze for CodeCoverageReportSummary
impl RefUnwindSafe for CodeCoverageReportSummary
impl Send for CodeCoverageReportSummary
impl Sync for CodeCoverageReportSummary
impl Unpin for CodeCoverageReportSummary
impl UnwindSafe for CodeCoverageReportSummary
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more