NAME
TB2::History::NoEventStorage - Throw out all events
SYNOPSIS
my $storage = TB2::History::NoEventStorage->new;
# Immediately discarded.
$storage->event_push($event);
# Trying to look at the events causes an exception.
my $events = $storage->events;
my $results = $storage->results;
DESCRIPTION
This object throws out all its input events and stores nothing.
This implements the TB2::History::EventStorage interface. It exists so that TB2::History can be configured to not store events and thus not grow in memory as the tests run.
Methods
The interface is the same as TB2::History::EventStorage with the following exceptions.
events
results
If called, they will both throw an exception.
events_push
Calls to this method will be ignored.
SEE ALSO
TB2::History::EventStorage is like NoEventStorage but it actually stores events.