Skip to main content

check_call_emits

Function check_call_emits 

Source
pub(crate) fn check_call_emits(
    tracker: &mut VecDeque<(ExpectedEmit, AddressHashMap<LogCountMap>)>,
    depth: usize,
    is_static: bool,
    succeeded: bool,
) -> Option<UnmetEmit>
Expand description

Checks the entire tracker when a non-static call ends at any tracked expectation’s depth.

Clears the tracker only if all expectations are satisfied; otherwise leaves it untouched. Callers must skip already-reverted calls to preserve their original failure.