Nested/Validator/NotBlank.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 2 SCAR 2.9
CC
2
Cov
100%
evaluation
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Nested/ProfileProvider/YAML.pm ↑ Summary Nested.pm »
1 package FormValidator::Nested::Validator::NotBlank;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 # blankのときは実行されないやつ
8  
9 2 ▶sub evaluation {
Subroutine evaluation: called CC=2 SCAR=6.9
Pod undocumented
10 2 my ( $value, $options, $req ) = @_;
11  
12 2 my $return_val;
13 {
14 3 ▶ no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 $return_val = eval($options->{code}); ## no critic
16 }
17  
18 2 ▶ if ( !$return_val ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($return_val) 1 1 2
19 1 return 0;
20 }
21 1 return 1;
22 }
23  
24  
25 3 1;
« Nested/ProfileProvider/YAML.pm ↑ Summary Nested.pm »