pub struct ConformanceReport { /* private fields */ }Expand description
Conformance test report
Implementations§
Source§impl ConformanceReport
impl ConformanceReport
Sourcepub fn from_results(
check_results: HashMap<String, (u64, u64)>,
failure_details: Vec<FailureDetail>,
) -> Self
pub fn from_results( check_results: HashMap<String, (u64, u64)>, failure_details: Vec<FailureDetail>, ) -> Self
Construct a report directly from check results and failure details.
Used by NativeConformanceExecutor to build a report without k6.
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
Serialize the report to JSON.
Includes both the raw checks map (for CLI/k6 compat) and structured
summary, categories, and failures fields (for UI consumption).
Sourcepub fn failure_details(&self) -> &[FailureDetail]
pub fn failure_details(&self) -> &[FailureDetail]
Get the failure details
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
Also loads failure details from conformance-failure-details.json in the same directory.
Sourcepub fn by_category(&self) -> HashMap<&'static str, CategoryResult>
pub fn by_category(&self) -> HashMap<&'static str, CategoryResult>
Get results grouped by category.
Includes all standard categories plus a synthetic “Custom” category for any check names starting with “custom:”.
Sourcepub fn print_report(&self)
pub fn print_report(&self)
Print the conformance report to stdout
Sourcepub fn print_report_with_options(&self, all_operations: bool)
pub fn print_report_with_options(&self, all_operations: bool)
Print the conformance report with options controlling detail level
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
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