Skip to main content

Module assertions

Module assertions 

Source
Expand description

Test assertions for supervisor diagnostics.

The functions in this module are intentionally small and panic with direct messages so failing tests point at missing observability facts.

Functionsยง

assert_child_state
Asserts that a child path has the expected lifecycle state.
assert_event_sequences_increase
Asserts that events were emitted in strict sequence order.
assert_journal_len
Asserts that a journal retained a specific number of events.
assert_recorder_has_metrics
Asserts that a test recorder saw at least one metric sample.
assert_shutdown_without_orphaned_tasks
Asserts that shutdown left no running children.
assert_summary_has_recent_events
Asserts that a run summary contains at least one recent event.