Branch Coverage

blib/lib/Regexp/Log/DateRange.pm
Criterion Covered Total %
branch 45 54 83.3


line true false branch
22 200 0 unless (ref $template)
23 0 200 unless $Regexp::Log::DateRange::templates{$template}
30 0 200 unless $n
31 0 200 unless $n == @$date1
32 0 200 unless $n == @$date2
35 17 200 if $$date1[$i] == $$date2[$i]
36 200 0 if $$date1[$i] < $$date2[$i]
46 309 291 $$date1[$i] == $$template[$i][1] ? :
47 313 287 $$date2[$i] == $$template[$i][2] ? :
58 0 1959 if (0 == @_) { }
775 1184 elsif (1 == @_) { }
75 1931 9771 if (not defined $tens[$ten]) { }
87 849 1931 unless defined $tens[$i]
88 463 1468 $tens[$i][0] == $tens[$i][1] ? :
91 1439 492 if ($i) { }
92 306 1133 if ($range eq $last_range) { }
130 200 595 if ($$w1[$depth] and $$w2[$depth] or $depth >= $#$d1) { }
569 26 elsif ($r1 < $r2) { }
150 287 282 if ($$w1[$depth]) { }
162 282 287 if ($$w2[$depth]) { }
173 569 0 if ($r1 + 1 < $r2)
187 282 513 $left ? :
795 0 $center ? :
287 508 $right ? :
200 595 769 if (exists $$hash{'value'}) { }
201 200 395 $$t[3] ? :
211 183 586 $$t[3] ? :