Shlomi Fish > Test-Run > Test::Run::Straps::StrapsTotalsObj

Download:
Test-Run-0.0302.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Test::Run::Straps::StrapsTotalsObj - an object representing the totals of the straps class.

FIELDS ^

METHODS ^

$self->_calc_passing()

Calculates whether the test file has passed.

$self->determine_passing()

Calculates whether the test file has passed and caches it in the passing() slot.

$self->last_detail()

Returns the last detail.

$self->handle_event({event => $event, enormous_num_cb => sub {...}});

Updates the state of the details using a new TAP::Parser event - $event . enormous_num_cb points to a subroutine reference that is the callback for handling enormous numbers.

$self->update_skip_reason($detail)

Updates the skip reason according to the detail $detail.

$self->get_failed_obj_params

Returns a key value array ref of params for initializing the failed-object.

$self->update_based_on_last_detail()

Check if the last_detail is OK, and if so update the skip_reason based on it.

$self->in_the_middle()

Checks if the tests are in the middle - already some were seen but the end was not reached.

$self->bonus()

Number of TODO tests that unexpectedly passed.

$self->details()

An array containing the details of the individual checks in the test file.

$self->exit()

The exit code of the test script.

$self->filename()

The filename of the test script.

$self->max()

The number of planned tests.

$self-ok()

The number of tests that passed.

$self->passing()

A boolean value that indicates whether the entire test script is considered a success or not.

$self->seen()

The number of tests that were actually run.

$self->skip()

The number of skipped tests.

$self->skip_all()

This field will contain the reason for why the entire test script was skipped, in cases when it was.

$self->skip_reason()

The skip reason for the last skipped test that specified such a reason.

$self->todo()

The number of "Todo" tests that were encountered.

$self->wait()

The wait code of the test script.

SEE ALSO ^

Test::Run::Base::Struct, Test::Run::Obj, Test::Run::Core

LICENSE ^

This file is licensed under the MIT X11 License:

http://www.opensource.org/licenses/mit-license.php

AUTHOR ^

Shlomi Fish, http://www.shlomifish.org/.

syntax highlighting: