Condition Coverage

lib/CGI/ValidOp/Check/date.pm
Criterion Covered Total %
condition 47 48 97.9


and 3 conditions

line !l l&&!r l&&r condition
26 0 50 27 $times and $$times[0]
32 6 2 51 check_year($y) and check_month($m)
8 18 33 check_year($y) and check_month($m) and check_day($d, $m, $y)
54 6 1 8 check_year($y) and check_month($m)
7 2 6 check_year($y) and check_month($m) and check_day($d, $m, $y)
79 6 1 13 check_year($y) and check_month($m)
7 2 11 check_year($y) and check_month($m) and check_day($d, $m, $y)
153 2 2 79 $m =~ qr/^\d{1,2}$/ and $m > 0
4 4 75 $m =~ qr/^\d{1,2}$/ and $m > 0 and $m < 13
162 1 1 102 defined $d and defined $m

or 3 conditions

line l !l&&r !l&&!r condition
164 71 30 1 $m != 2 or defined $y
166 2 2 97 not $d =~ qr/^\d{1,2}$/ or $d < 1
4 14 83 not $d =~ qr/^\d{1,2}$/ or $d < 1 or $d > 31
169 5 4 74 $m == 4 or $m == 6
9 13 61 $m == 4 or $m == 6 or $m == 9
17 4 57 $m == 4 or $m == 6 or $m == 9 or $m == 11