Expand description
Assertion macros and result tracking for simulation testing.
This module provides always_assert! and sometimes_assert! macros for testing
distributed system properties. Assertions are tracked using thread-local storage
to enable statistical analysis of system behavior across multiple simulation runs.
Structs§
- Assertion
Stats - Statistics for a tracked assertion.
Functions§
- get_
assertion_ results - Get current assertion statistics for all tracked assertions.
- panic_
on_ assertion_ violations - Check assertion validation and panic if violations are found.
- record_
assertion - Record an assertion result for statistical tracking.
- reset_
assertion_ results - Reset all assertion statistics to empty state.
- validate_
assertion_ contracts - Validate that all
sometimes_assert!assertions actually behave as “sometimes”.