PerlActor/Exception.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 79.1% 19 / 24 CC 3 SCAR 8.4
CC
3
Cov
83%
new
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 2.3
« PerlActor/Runner/Console.pm ↑ Summary PerlActor/LineTokenizer.pm »
1 package PerlActor::Exception;
2  
3 1 ▶use Error qw( :try );
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use base qw (Error::Simple);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub new
7 9 ▶{
Subroutine new: called CC=3 SCAR=11.6
Pod documented
8 9 my $proto = shift;
9 9 ▶ my $class = ref $proto || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
090
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
10 9 my $text = shift;
11 9 ▶ $text = '' unless $text;
Branch: 1 branch
BranchTrueFalseTotal
unless $text 0 9 9
12 9 my $value = shift;
13 9 return $class->SUPER::new($text, $value);
14 }
15  
16 # Keep Perl happy.
17 1 1;
« PerlActor/Runner/Console.pm ↑ Summary PerlActor/LineTokenizer.pm »