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

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 96.3% 26 / 27 SCAR 6.9
CC
2
Cov
95%
Check
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Salvation/TC/Type/Undef.pm ↑ Summary blib/lib/Salvation/TC/Meta/Type/Maybe.pm »
1 package Salvation::TC::Type::Object;
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 Scalar::Util 'blessed';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use Salvation::TC::Exception::WrongType ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 sub Check {
13  
14 1 ▶ my ( $class, $value ) = @_;
Subroutine Check: called CC=2 SCAR=7.2
Pod documented
15  
16 1 ▶ blessed( $value ) || Salvation::TC::Exception::WrongType -> throw( 'type' => 'Object', 'value' => $value );
Branch: 1 branch
BranchTrueFalseTotal
builtin::blessed($value) or "Salvation::TC::Exception::WrongType"->throw("type", "Object", "value", $value) 1 0 1
17 }
18  
19 4 1;
20  
21 __END__
« blib/lib/Salvation/TC/Type/Undef.pm ↑ Summary blib/lib/Salvation/TC/Meta/Type/Maybe.pm »