Expand description
Engine-free matching for the expectEmit cheatcodes.
StructsΒ§
EnumsΒ§
- Emit
Mismatch - Unmet
Emit π - Why the tracked expected emits were not satisfied when a call ended.
FunctionsΒ§
- check_
call_ πemits - Checks the entire tracker when a non-static call ends at any tracked expectationβs
depth. - checked_
topic_ πcount - checks_
topics_ πand_ data - decode_
event π - first_
unmet_ πroot_ emit - Checks for leftover expected emits when the root call ends without reverting.
- get_
emit_ πmismatch_ message - Gets a detailed mismatch message for emit assertions
- name_
mismatched_ πlogs - Formats the generic mismatch message: βlog != expected logβ to include event names if available
- observe_
log π - Fills or checks the expected emits against an emitted log.
- reconstruct_
params π - Restore the order of the params of a decoded event
Type AliasesΒ§
- Expected
Emit Tracker - Handles expected emits specified by the
expectEmitcheatcodes.