Condition Coverage

blib/lib/Validator/Declarative/Rules/SimpleType.pm
Criterion Covered Total %
condition 98 108 90.7


or 3 conditions

line l !l&&r !l&&!r condition
20 1 3 19 ref $input or not $input =~ /^(1|true|t|yes|y|0|false|f|no|n|)$/i
26 1 4 11 ref $input or not $input =~ /^[+-]?\d+(:?\.\d*)?$/
32 7 51 3934 ref $input or not $input =~ /^[+-]?\d+$/
39 1 12 7 ref $input or $input <= 0
46 1 8 5 ref $input or $input >= 0
63 1 15 2 ref $input or not 'Email::Valid'->address($input)
72 0 2074 1131 ref $input or $input < 1970
2074 100 1031 ref $input or $input < 1970 or $input > 3000
84 0 105 153 ref $input or $input < 1
105 100 53 ref $input or $input < 1 or $input > 53
96 0 105 112 ref $input or $input < 1
105 100 12 ref $input or $input < 1 or $input > 12
108 0 105 131 ref $input or $input < 1
105 100 31 ref $input or $input < 1 or $input > 31
118 1 21 7080 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/
22 2 7078 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970
23 8 7070 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970 or $1 > 3000
10 1 7069 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970 or $1 > 3000 or $2 < 1
9 1 7068 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970 or $1 > 3000 or $2 < 1 or $2 > 12
2 0 7068 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970 or $1 > 3000 or $2 < 1 or $2 > 12 or $3 < 1
1 0 7068 ref $input or not $input =~ /^(\d{4})-(\d{2})-(\d{2})$/ or $1 < 1970 or $1 > 3000 or $2 < 1 or $2 > 12 or $3 < 1 or $3 > 31
132 1 23 43906 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$]
24 1 43905 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$] or $1 < 1
24 8 43897 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$] or $1 < 1 or $1 > 12
9 0 43897 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$] or $1 < 1 or $1 > 12 or $2 < 1
8 0 43897 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$] or $1 < 1 or $1 > 12 or $2 < 1 or $2 > 31
36828 0 7069 $3 > 0 && $3 < 100 || $3 >= 1970 && $3 <= 3000
0 1 43896 ref $input or not $input =~ m[^(\d\d?)/(\d\d?)/(\d\d(?:\d\d)?)$] or $1 < 1 or $1 > 12 or $2 < 1 or $2 > 31 or not $3 > 0 && $3 < 100 || $3 >= 1970 && $3 <= 3000
145 1 11 86404 ref $input or not $input =~ /^(\d\d):(\d\d):(\d\d)$/
12 2 86402 ref $input or not $input =~ /^(\d\d):(\d\d):(\d\d)$/ or $1 > 23
13 1 86401 ref $input or not $input =~ /^(\d\d):(\d\d):(\d\d)$/ or $1 > 23 or $2 > 59
3 1 86400 ref $input or not $input =~ /^(\d\d):(\d\d):(\d\d)$/ or $1 > 23 or $2 > 59 or $3 > 59
152 1 11 1443 ref $input or not $input =~ /^(\d\d):(\d\d)$/
12 2 1441 ref $input or not $input =~ /^(\d\d):(\d\d)$/ or $1 > 23
13 1 1440 ref $input or not $input =~ /^(\d\d):(\d\d)$/ or $1 > 23 or $2 > 59
161 2 16 14 ref $input or not $input =~ /^\d+(:?\.\d*)?$/