blib/lib/Salvation/TC/Exception/WrongType.pm

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 78.9% 15 / 19 SCAR 11.1
CC
3
Cov
85%
getType
2.1
getValue
2.1
BEGIN
1.0
CRAP 3.0
« blib/lib/Salvation/TC/Exception.pm ↑ Summary blib/lib/Salvation/TC/Meta.pm »
1 package Salvation::TC::Exception::WrongType;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use base qw( Salvation::TC::Exception );
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub getType {
7 7 ▶ return( ref( $_[0] ) ? $_[0]->{ 'type' } : '' );
Subroutine getType: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 7 0 7
8 }
9  
10 sub getValue {
11 7 ▶ return( ref( $_[0] ) ? $_[0]->{ 'value' } : '' );
Subroutine getValue: called CC=2 SCAR=7.6
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 7 0 7
12 }
13  
14 4 1;
15 __END__
« blib/lib/Salvation/TC/Exception.pm ↑ Summary blib/lib/Salvation/TC/Meta.pm »