blib/lib/Test/Unit/Error.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 64.7% 11 / 17 CC 1 SCAR 2.2
CC
1
Cov
67%
make_new_from_error
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Test/Unit/Assertion.pm ↑ Summary blib/lib/Test/Unit/Listener.pm »
1 package Test::Unit::Error;
2 BEGIN {
3 6 ▶ $Test::Unit::Error::VERSION = '0.25_1325'; # added by dist-tools/SetVersion.pl
Subroutine BEGIN: called CC=1 SCAR=0.0
4 }
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use base qw(Test::Unit::Exception);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # This is a hack to effectively rebless an unknown user exception as a
9 # Test::Unit::Error, which is nice because all Test::Unit::Exceptions
10 # have nice stringify() methods.
11 sub make_new_from_error {
12 0 ▶ my $self = shift;
Subroutine make_new_from_error: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $ex = shift;
14 0 my $object = shift;
15 0 $self->new(%$ex, -object => $object);
16 }
17  
18 6 1;
19 __END__
« blib/lib/Test/Unit/Assertion.pm ↑ Summary blib/lib/Test/Unit/Listener.pm »