EventSpyQueueImpl
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl
pub impl EventSpyQueueImpl of EventSpyExt;
Impl functions
get_events
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::get_events
fn get_events(ref self: EventSpyQueue) -> Events
assert_only_event
Ensures that from_address has emitted only the expected_event and no additional events.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::assert_only_event
fn assert_only_event(ref self: EventSpyQueue, from_address: ContractAddress, expected_event: T)
assert_emitted_single
Ensures that from_address has emitted the expected_event.
This assertion increments the event offset which essentially
consumes the event in the first position of the offset. This means
that events must be asserted in the order that they’re emitted.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::assert_emitted_single
fn assert_emitted_single(ref self: EventSpyQueue, from_address: ContractAddress, expected_event: T)
drop_event
Removes a single event from the queue. If the queue is empty, the function will panic.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::drop_event
fn drop_event(ref self: EventSpyQueue)
drop_n_events
Removes number_to_drop events from the queue. If the queue is empty, the function will
panic.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::drop_n_events
fn drop_n_events(ref self: EventSpyQueue, number_to_drop: u32)
drop_all_events
Removes all events remaining on the queue. If the queue is empty already, the function will do nothing.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::drop_all_events
fn drop_all_events(ref self: EventSpyQueue)
assert_no_events_left
Ensures that there are no events remaining on the queue.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::assert_no_events_left
fn assert_no_events_left(ref self: EventSpyQueue)
assert_no_events_left_from
Ensures that there are no events emitted from the given address remaining on the queue.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::assert_no_events_left_from
fn assert_no_events_left_from(ref self: EventSpyQueue, from_address: ContractAddress)
count_events_from
Counts the number of remaining events emitted from the given address.
Fully qualified path: openzeppelin_testing::events::EventSpyQueueImpl::count_events_from
fn count_events_from(ref self: EventSpyQueue, from_address: ContractAddress) -> u32