pub struct CoverageConfig {Show 15 fields
pub coverage_types: Vec<CoverageType>,
pub coverage_threshold: f64,
pub branch_threshold: f64,
pub integration_threshold: f64,
pub report_formats: Vec<ReportFormat>,
pub output_directory: PathBuf,
pub include_systemcode: bool,
pub exclude_patterns: Vec<String>,
pub include_patterns: Vec<String>,
pub real_time_updates: bool,
pub samplingrate: f64,
pub enable_history: bool,
pub history_retention: Duration,
pub enable_diff_coverage: bool,
pub diffbase: Option<String>,
}Expand description
Coverage configuration
Fields§
§coverage_types: Vec<CoverageType>Types of coverage to collect
coverage_threshold: f64Minimum coverage threshold (percentage)
branch_threshold: f64Branch coverage threshold
integration_threshold: f64Integration coverage threshold
report_formats: Vec<ReportFormat>Report output formats
output_directory: PathBufOutput directory for reports
include_systemcode: boolInclude system/library code in coverage
exclude_patterns: Vec<String>File patterns to exclude from coverage
include_patterns: Vec<String>File patterns to include (if empty, includes all)
real_time_updates: boolEnable real-time coverage updates
samplingrate: f64Sampling rate for performance optimization (1.0 = 100%)
enable_history: boolEnable historical tracking
history_retention: DurationHistory retention period
enable_diff_coverage: boolEnable differential coverage
diffbase: Option<String>Base commit/branch for differential coverage
Implementations§
Source§impl CoverageConfig
impl CoverageConfig
Sourcepub fn production() -> Self
pub fn production() -> Self
Create production-optimized configuration
Sourcepub fn development() -> Self
pub fn development() -> Self
Create development configuration with comprehensive coverage
Sourcepub fn with_coverage_types(self, types: Vec<CoverageType>) -> Self
pub fn with_coverage_types(self, types: Vec<CoverageType>) -> Self
Set coverage types to collect
Sourcepub fn with_threshold(self, threshold: f64) -> Self
pub fn with_threshold(self, threshold: f64) -> Self
Set minimum coverage threshold
Sourcepub fn with_branch_threshold(self, threshold: f64) -> Self
pub fn with_branch_threshold(self, threshold: f64) -> Self
Set branch coverage threshold
Sourcepub fn with_report_format(self, format: ReportFormat) -> Self
pub fn with_report_format(self, format: ReportFormat) -> Self
Set report output format
Sourcepub fn with_output_directory<P: AsRef<Path>>(self, path: P) -> Self
pub fn with_output_directory<P: AsRef<Path>>(self, path: P) -> Self
Set output directory
Sourcepub fn with_diff_coverage(self, base: &str) -> Self
pub fn with_diff_coverage(self, base: &str) -> Self
Enable differential coverage
Sourcepub fn with_exclude_patterns(self, patterns: Vec<&str>) -> Self
pub fn with_exclude_patterns(self, patterns: Vec<&str>) -> Self
Set file exclusion patterns
Trait Implementations§
Source§impl Clone for CoverageConfig
impl Clone for CoverageConfig
Source§fn clone(&self) -> CoverageConfig
fn clone(&self) -> CoverageConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoverageConfig
impl Debug for CoverageConfig
Source§impl Default for CoverageConfig
impl Default for CoverageConfig
Source§impl<'de> Deserialize<'de> for CoverageConfig
impl<'de> Deserialize<'de> for CoverageConfig
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>,
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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: 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 moreSource§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.