Branch Coverage

blib/lib/No/Dato.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
116 1 20 if ($date =~ /^\d+$/) { }
20 0 elsif ($date =~ s/^(\d{4})-(\d\d-\d\d)$/$2/) { }
126 3 18 unless exists $hellig_cache{$year}
128 12 9 if (exists $hellig_cache{$year}{$date}) { }
132 8 1 unless (defined $weekday)
136 0 9 if $weekday == 0
137 1 1 if $weekday == 6 and $_[0]
177 3 1 unless (exists $hellig_cache{$year})
183 15 21 if ($date =~ /^(\d+)-(\d+)$/) { }
220 3 0 if ($year > 1582) { }
227 0 3 if $epact <= 0
228 0 3 if ($epact == 25) { }
229 0 0 if $golden > 11
231 0 3 if $epact == 24
239 1 2 if $easter < 21
248 1 2 if &leap_year($year)
256 16 8 unless $year % 4 == 0 and $year % 100 != 0
265 7 14 if (leap_year $year)
269 0 21 if $dayno < 1 or $dayno > $maxdayno