Condition Coverage

blib/lib/Validator/Custom/Constraint.pm
Criterion Covered Total %
condition 114 114 100.0


and 3 conditions

line !l l&&!r l&&r condition
14 1 3 2 defined $_[0] && $_[0] =~ /^[\x21-\x7E]+$/
21 1 1 15 defined $start and $start =~ /$NUM_RE/
2 1 14 defined $start and $start =~ /$NUM_RE/ and defined $end
2 1 13 defined $start and $start =~ /$NUM_RE/ and defined $end and $end =~ /$NUM_RE/
24 1 2 10 defined $value and $value =~ /$NUM_RE/
25 1 1 8 $value >= $start && $value <= $end
41 1 1 12 defined $year and defined $mon
2 1 11 defined $year and defined $mon and defined $mday
44 4 1 6 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/
5 1 5 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/ and $mday =~ /^[0-9]{1,2}$/
89 1 1 18 defined $year and defined $mon
2 1 17 defined $year and defined $mon and defined $mday
2 1 16 defined $year and defined $mon and defined $mday and defined $hour
2 1 15 defined $year and defined $mon and defined $mday and defined $hour and defined $min
2 1 14 defined $year and defined $mon and defined $mday and defined $hour and defined $min and defined $sec
93 4 1 9 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/
5 1 8 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/ and $mday =~ /^[0-9]{1,2}$/
2 1 7 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/ and $mday =~ /^[0-9]{1,2}$/ and $hour =~ /^[0-9]{1,2}$/
2 1 6 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/ and $mday =~ /^[0-9]{1,2}$/ and $hour =~ /^[0-9]{1,2}$/ and $min =~ /^[0-9]{1,2}$/
2 1 5 $year =~ /^[0-9]{1,4}$/ and $mon =~ /^[0-9]{1,2}$/ and $mday =~ /^[0-9]{1,2}$/ and $hour =~ /^[0-9]{1,2}$/ and $min =~ /^[0-9]{1,2}$/ and $sec =~ /^[0-9]{1,2}$/
144 5 7 4 defined $digits->[0] and defined $digits->[1]
158 1 9 6 defined $value and $value =~ /$re/
169 3 1 6 defined $values->[0] and defined $values->[1]
176 1 1 7 defined $target and $target =~ /$NUM_RE/
179 1 2 4 defined $value and $value =~ /$NUM_RE/
186 1 1 11 defined $target and $target =~ /$NUM_RE/
189 1 2 8 defined $value and $value =~ /$NUM_RE/
194 1 2 2 defined $_[0] && $_[0] =~ m[^s?https?://[-_.!~*'()a-zA-Z0-9;/?:\@&=+\$,%#]+$]
197 7 27 21 defined $_[0] && $_[0] =~ /^\-?[0-9]+$/
225 4 4 11 defined $min and defined $max
226 3 1 7 $length >= $min && $length <= $max
241 1 1 9 defined $target and $target =~ /$NUM_RE/
244 1 2 6 defined $value and $value =~ /$NUM_RE/
259 1 4 3 defined $_[0] && !($_[0] =~ /^[ \t\n\r\f]*$/)
261 1 5 4 defined $_[0] && $_[0] =~ /^[0-9]+$/
265 1 3 3 defined $value && $value =~ /$regex/
284 1 2 5 defined $_[0] && $_[0] =~ /^[ \t\n\r\f]*$/

or 3 conditions

line l !l&&r !l&&!r condition
220 15 4 1 defined $min or defined $max