Nested/Validator/Internal.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.2% 20 / 21 CC 2 SCAR 3.4
CC
2
Cov
100%
nested_hash
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Nested/Result/Param.pm ↑ Summary Nested/Validator/Email.pm »
1 package FormValidator::Nested::Validator::Internal;
2 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 21 ▶sub nested_hash {
Subroutine nested_hash: called CC=2 SCAR=6.9
Pod undocumented
8 21 my ( $value, $options, $req ) = @_;
9  
10 21 ▶ if ( ref $value ne 'HASH' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $value ne "HASH") 3 18 21
11 3 return 0;
12 }
13  
14 18 return 1;
15 }
16  
17  
18 18 1;
19  
« Nested/Result/Param.pm ↑ Summary Nested/Validator/Email.pm »