pub struct ConformanceReport { /* private fields */ }Expand description
Conformance test report
Implementations§
Source§impl ConformanceReport
impl ConformanceReport
Sourcepub fn from_file(path: &Path) -> Result<Self>
pub fn from_file(path: &Path) -> Result<Self>
Parse a conformance report from k6’s handleSummary JSON output
Sourcepub fn by_category(&self) -> HashMap<&'static str, CategoryResult>
pub fn by_category(&self) -> HashMap<&'static str, CategoryResult>
Get results grouped by category
Sourcepub fn print_report(&self)
pub fn print_report(&self)
Print the conformance report to stdout
Sourcepub fn raw_check_results(&self) -> &HashMap<String, (u64, u64)>
pub fn raw_check_results(&self) -> &HashMap<String, (u64, u64)>
Get raw per-check results (for SARIF conversion)
Sourcepub fn overall_rate(&self) -> f64
pub fn overall_rate(&self) -> f64
Overall pass rate (0.0 - 100.0)
Auto Trait Implementations§
impl Freeze for ConformanceReport
impl RefUnwindSafe for ConformanceReport
impl Send for ConformanceReport
impl Sync for ConformanceReport
impl Unpin for ConformanceReport
impl UnsafeUnpin for ConformanceReport
impl UnwindSafe for ConformanceReport
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> 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>
Converts
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>
Converts
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