NAME

Test::Run::Obj::TotObj - totals encountered for the entire Test::Run session

DESCRIPTION

Inherits from Test::Run::Base::Struct.

METHODS

$self->add($field, $diff)

Adds the difference $diff to the slot $field, assuming it is a counter field.

$self->inc($field)

Increments the field $field by 1.

$self->bench_timestr()

Retrieves the timestr() "nop" according to Benchmark.pm of the bench() field.

$self->all_ok()

Returns a boolean value - 0 or 1 if all tests were OK.

$self->add_results($results)

Adds the sums from a results object.

$self->get_sub_skipped_msg()

Calculates the sub-skipped message ("X subtest/s")

$self->benchmark_callback(\&callback)

Benchmarks the callback &callback using the Benchmark module and puts the result in the bench() slot.

SEE ALSO

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

LICENSE

This file is freely distributable under the MIT X11 license.

AUTHOR

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