1Test::Run::Obj::TotObj(U3s)er Contributed Perl DocumentatTieosnt::Run::Obj::TotObj(3)
2
3
4

NAME

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

DESCRIPTION

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

METHODS

13   BUILD
14       For Moose.
15
16   $self->add($field, $diff)
17       Adds the difference $diff to the slot $field, assuming it is a counter
18       field.
19
20   $self->inc($field)
21       Increments the field $field by 1.
22
23   $self->bench_timestr()
24       Retrieves the timestr() "nop" according to Benchmark.pm of the bench()
25       field.
26
27   $self->all_ok()
28       Returns a boolean value - 0 or 1 if all tests were OK.
29
30   $self->fail_test_scripts_string()
31       Internal use.
32
33   $self->add_results($results)
34       Adds the sums from a results object.
35
36   $self->get_sub_skipped_msg()
37       Calculates the sub-skipped message ("X subtest/s")
38
39   $self->get_bonusmsg()
40       Internal use.
41
42   $self->get_sub_percent_msg()
43       Internal use.
44
45   $self->good_percent_msg()
46       Internal use.
47
48   $self->fail_tests_good_percent_string()
49       Internal use.
50
51   $self->benchmark_callback(\&callback)
52       Benchmarks the callback &callback using the Benchmark module and puts
53       the result in the "bench()" slot.
54

SEE ALSO

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

LICENSE

59       This file is freely distributable under the MIT X11 license.
60
61       <http://www.opensource.org/licenses/mit-license.php>
62

AUTHOR

64       Shlomi Fish, <http://www.shlomifish.org/>.
65
66
67
68perl v5.32.1                      2021-01-27         Test::Run::Obj::TotObj(3)
Impressum