-
-
17 Oct 2020 16:18:04 UTC
- Distribution: Test-Run
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues (0)
- Testers (325 / 2 / 0)
- Kwalitee
Bus factor: 1- 93.61% Coverage
- License: mit
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (107.99KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- DESCRIPTION
- METHODS
- BUILD
- $self->add($field, $diff)
- $self->inc($field)
- $self->bench_timestr()
- $self->all_ok()
- $self->fail_test_scripts_string()
- $self->add_results($results)
- $self->get_sub_skipped_msg()
- $self->get_bonusmsg()
- $self->get_sub_percent_msg()
- $self->good_percent_msg()
- $self->fail_tests_good_percent_string()
- $self->benchmark_callback(\&callback)
- SEE ALSO
- LICENSE
- AUTHOR
NAME
Test::Run::Obj::TotObj - totals encountered for the entire Test::Run session
DESCRIPTION
Inherits from Test::Run::Base::Struct.
METHODS
BUILD
For Moose.
$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->fail_test_scripts_string()
Internal use.
$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->get_bonusmsg()
Internal use.
$self->get_sub_percent_msg()
Internal use.
$self->good_percent_msg()
Internal use.
$self->fail_tests_good_percent_string()
Internal use.
$self->benchmark_callback(\&callback)
Benchmarks the callback
&callback
using the Benchmark module and puts the result in thebench()
slot.SEE ALSO
Test::Run::Base::Struct, Test::Run::Obj, Test::Run::Core
LICENSE
This file is freely distributable under the MIT X11 license.
http://www.opensource.org/licenses/mit-license.php
AUTHOR
Shlomi Fish, http://www.shlomifish.org/.
Module Install Instructions
To install Test::Run, copy and paste the appropriate command in to your terminal.
cpanm Test::Run
perl -MCPAN -e shell install Test::Run
For more information on module installation, please visit the detailed CPAN module installation guide.