pub struct CoverageConfig {
pub line_threshold: f64,
pub branch_threshold: f64,
pub endpoint_threshold: f64,
pub fail_on_threshold: bool,
pub output_formats: Vec<OutputFormat>,
pub output_dir: String,
}Expand description
Configuration for coverage tracking.
Fields§
§line_threshold: f64Minimum line coverage percentage (0.0 - 1.0).
branch_threshold: f64Minimum branch coverage percentage (0.0 - 1.0).
endpoint_threshold: f64Minimum endpoint coverage percentage (0.0 - 1.0).
fail_on_threshold: boolWhether to fail tests below threshold.
output_formats: Vec<OutputFormat>Output formats to generate.
output_dir: StringDirectory for coverage reports.
Implementations§
Source§impl CoverageConfig
impl CoverageConfig
Sourcepub fn line_threshold(self, threshold: f64) -> Self
pub fn line_threshold(self, threshold: f64) -> Self
Set the line coverage threshold.
Sourcepub fn branch_threshold(self, threshold: f64) -> Self
pub fn branch_threshold(self, threshold: f64) -> Self
Set the branch coverage threshold.
Sourcepub fn endpoint_threshold(self, threshold: f64) -> Self
pub fn endpoint_threshold(self, threshold: f64) -> Self
Set the endpoint coverage threshold.
Sourcepub fn output_formats(self, formats: Vec<OutputFormat>) -> Self
pub fn output_formats(self, formats: Vec<OutputFormat>) -> Self
Set output formats.
Sourcepub fn output_dir(self, dir: impl Into<String>) -> Self
pub fn output_dir(self, dir: impl Into<String>) -> Self
Set output directory.
Trait Implementations§
Source§impl Clone for CoverageConfig
impl Clone for CoverageConfig
Source§fn clone(&self) -> CoverageConfig
fn clone(&self) -> CoverageConfig
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 CoverageConfig
impl Debug for CoverageConfig
Auto Trait Implementations§
impl Freeze for CoverageConfig
impl RefUnwindSafe for CoverageConfig
impl Send for CoverageConfig
impl Sync for CoverageConfig
impl Unpin for CoverageConfig
impl UnwindSafe for CoverageConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).