Reporter/Dumper.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran 50.0% 1 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 57.6% 15 / 26 SCAR 12.0
CC
3
Cov
67%
dump
6.0
new
2.0
BEGIN
1.0
CRAP 3.3
« Reporter/Summarizer/Text.pm ↑ Summary Reporter/Summarizer.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Exception::Reporter::Dumper;
4 # ABSTRACT: something that dumps values into records
5 2 $Exception::Reporter::Dumper::VERSION = '0.014';
6 sub new {
7 3 ▶ my $class = shift;
Subroutine new: called CC=2 SCAR=7.1
Pod undocumented
8  
9 3 ▶ Carp::confess("$class constructor does not take any parameters") if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 3 3
10  
11 3 return bless {}, $class;
12 }
13  
14 sub dump {
15 0 ▶ my $class = ref $_[0] || $_[0];
Subroutine dump: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
16 0 Carp::confess("$class does not implement required Exception::Reporter::Dumper method 'dump'");
17 }
18  
19 2 1;
20  
21 __END__
« Reporter/Summarizer/Text.pm ↑ Summary Reporter/Summarizer.pm »