Michael G Schwern > Test-Simple-1.005000_002 > TB2::NoHistory

Download:
Test-Simple-1.005000_002.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.005000_002   Source  

NAME ^

TB2::NoHistory - Store no history, just keep stats

SYNOPSIS ^

    use TB2::NoHistory;

    # This is a shared default object
    my $history = TB2::NoHistory->default;
    my $ec = TB2::EventCoordinator->create(
        history => $history
    );

    my $result  = TB2::Result->new_result( pass => 1 );
    $ec->post_event($result);

    $history->can_succeed;    # true
    $history->test_count;    # 1  we've seen a test
    $history->results_count; # 0  we did not store a result
    $history->results;       # [] still not there

DESCRIPTION ^

This object does not store results but manages the history of test stats.

API ^

All methods are the same from TB2::History.

syntax highlighting: