Branch Coverage

blib/lib/Apache/Voodoo/Validate/time.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
14 2 4 if (defined $$c{'min'})
16 2 0 if ($t) { }
24 2 4 if (defined $$c{'max'})
26 2 0 if ($t) { }
41 2 10 unless ($v)
45 1 9 if (defined $$self{'min'} and $v lt $$self{'min'})
49 2 7 if (defined $$self{'max'} and $v gt $$self{'max'})
63 1 15 unless ($time =~ /^\d?\d:[0-5]?\d(:[0-5]?\d)?(am|pm)?$/i)
68 6 9 if ($time =~ s/([ap])m$//gio) { }
69 4 2 lc $1 eq 'p' ? :
74 4 2 if ($pm eq '1') { }
1 1 elsif ($pm eq '0' and $h == 12) { }
75 3 1 if ($h < 12) { }
1 0 elsif ($h > 12) { }
92 0 14 if ($h < 0 or $h > 23)
94 9 5 unless defined $s