#[non_exhaustive]pub struct Assertion {
pub id: &'static str,
pub message: &'static str,
pub kind: AssertionKind,
pub location: SourceLocation,
}Expand description
One assertion declaration compiled into this binary.
There is one per assertion macro call site linked into the program,
whether or not that code ever runs: the catalog is a static property of
the binary, not of any particular execution. The numeric and boolean
macros each contribute one assertion. The guidance they additionally
register is not an assertion: antithesis_init()
registers it with the platform, but this module does not list it.
Catalog entries registered at runtime through
assert_raw are not part of the compiled-in
catalog and do not appear.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: &'static strThe key under which Antithesis aggregates this assertion’s evaluations
into one test property. Currently equal to message; treat it as
opaque.
message: &'static strThe name of the test property, as shown in the triage report.
kind: AssertionKind§location: SourceLocation