lib/Lingy/Exception.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 56.5% 13 / 23 CC 2 SCAR 10.4
CC
2
Cov
59%
new
6.0
__ANON__
2.0
BEGIN
1.0
CRAP 2.8
« lib/Lingy/Boolean.pm ↑ Summary blib/lib/Lingy/Test.pm »
1 53 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Lingy::Exception;
3  
4 53 ▶use overload '""' => sub {
Subroutine BEGIN: called CC=1 SCAR=0.2
Subroutine __ANON__: not called CC=1 SCAR=6.9
5 0 $_[0]->{msg};
6 53 };
7  
8 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ($class, $msg, $data) = @_;
10 0 my $self = bless { msg => $msg }, $class;
11 0 ▶ $self->{data} = $data if $data;
Branch: 1 branch
BranchTrueFalseTotal
if $data 0 0 0
12 0 return $self;
13 }
14  
15 53 1;
« lib/Lingy/Boolean.pm ↑ Summary blib/lib/Lingy/Test.pm »