pub struct GeneratedCoverageReport {
pub language: Symbol,
pub sampled: usize,
pub round_tripped: usize,
pub mismatched: usize,
pub diagnostics: usize,
pub max_depth: usize,
pub seed: Vec<Expr>,
pub landmark_reproduced: bool,
pub unmet_landmarks: Vec<Expr>,
}Expand description
A reproducible measurement of generated expression round-trip coverage.
Fields§
§language: SymbolLanguage row measured by this report.
sampled: usizeNumber of generated cases sampled.
round_tripped: usizeNumber of sampled cases that round-tripped.
mismatched: usizeNumber of sampled cases that decoded to a different expression.
diagnostics: usizeNumber of sampled cases that produced diagnostics or declared gaps.
max_depth: usizeMaximum expression depth used by the space.
seed: Vec<Expr>Seed corpus used as the landmark gate for this measurement.
landmark_reproduced: boolWhether every seed landmark round-tripped before coverage reporting.
unmet_landmarks: Vec<Expr>Seed expressions that did not round-trip before measurement.
Implementations§
Source§impl GeneratedCoverageReport
impl GeneratedCoverageReport
Sourcepub fn landmark_reproduced(&self) -> bool
pub fn landmark_reproduced(&self) -> bool
Returns true when every seed landmark round-tripped.
Sourcepub fn coverage(&self) -> Option<f32>
pub fn coverage(&self) -> Option<f32>
Coverage ratio, round_tripped / sampled.
Returns None when seed landmark reproduction did not pass or the run
sampled no generated cases.
Sourcepub fn coverage_percent(&self) -> Option<f32>
pub fn coverage_percent(&self) -> Option<f32>
Coverage percentage, derived from GeneratedCoverageReport::coverage.
Trait Implementations§
Source§impl Clone for GeneratedCoverageReport
impl Clone for GeneratedCoverageReport
Source§fn clone(&self) -> GeneratedCoverageReport
fn clone(&self) -> GeneratedCoverageReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratedCoverageReport
impl Debug for GeneratedCoverageReport
impl Eq for GeneratedCoverageReport
Source§impl PartialEq for GeneratedCoverageReport
impl PartialEq for GeneratedCoverageReport
Source§fn eq(&self, other: &GeneratedCoverageReport) -> bool
fn eq(&self, other: &GeneratedCoverageReport) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeneratedCoverageReport
Auto Trait Implementations§
impl Freeze for GeneratedCoverageReport
impl RefUnwindSafe for GeneratedCoverageReport
impl Send for GeneratedCoverageReport
impl Sync for GeneratedCoverageReport
impl Unpin for GeneratedCoverageReport
impl UnsafeUnpin for GeneratedCoverageReport
impl UnwindSafe for GeneratedCoverageReport
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.