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
« blib/lib/Lingy/Vector.pm ↑ Summary blib/lib/Lingy/Test.pm »
1 57 ▶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 use overload '""' => sub {
5 0 ▶ $_[0]->{msg};
Subroutine __ANON__: not called CC=1 SCAR=6.9
6 57 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub new {
9 0 ▶ my ($class, $msg, $data) = @_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
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 57 1;
« blib/lib/Lingy/Vector.pm ↑ Summary blib/lib/Lingy/Test.pm »