blib/lib/Salvation/TC/Type/Ref.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 78.2% 18 / 23 SCAR 7.2
CC
2
Cov
76%
Check
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« blib/lib/Salvation/TC/Type/Defined.pm ↑ Summary blib/lib/Salvation/TC/Type/Undef.pm »
1 package Salvation::TC::Type::Ref;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use base 'Salvation::TC::Type';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use Salvation::TC::Exception::WrongType ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 sub Check {
12  
13 0 ▶ my ( $class, $value ) = @_;
Subroutine Check: not called CC=2 SCAR=17.9
Pod documented
14  
15 0 ▶ ref( $value ) || Salvation::TC::Exception::WrongType -> throw( 'type' => 'Ref', 'value' => $value );
Branch: 1 branch
BranchTrueFalseTotal
ref $value or "Salvation::TC::Exception::WrongType"->throw("type", "Ref", "value", $value) 0 0 0
16 }
17  
18 4 1;
19  
20 __END__
« blib/lib/Salvation/TC/Type/Defined.pm ↑ Summary blib/lib/Salvation/TC/Type/Undef.pm »