TB2::History::NoEventStorage - Throw out all events
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;
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.
The interface is the same as TB2::History::EventStorage with the following exceptions.
If called, they will both throw an exception.
Calls to this method will be ignored.
TB2::History::EventStorage is like NoEventStorage but it actually stores events.
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.