Branch Coverage

blib/lib/Calendar/Japanese/Holiday.pm
Criterion Covered Total %
branch 98 128 76.5


line true false branch
211 76 3530 if ($mon == 2 and $year % 4 == 0)
212 6 70 if ($year % 100 == 0)
213 6 0 if $year % 400 == 0
236 10257 1677 if $day > 0
247 2360 13088 if $tbl->{'start'} <= $year and $year <= $tbl->{'end'}
262 33 102 if ($mod == 0) { }
34 68 elsif ($mod == 1) { }
35 33 elsif ($mod == 2) { }
33 0 elsif ($mod == 3) { }
263 0 33 if (1900 <= $year and $year <= 1956) { }
33 0 elsif (1960 <= $year and $year <= 2088) { }
0 0 elsif (2092 <= $year and $year <= 2096) { }
267 3 31 if (1901 <= $year and $year <= 1989) { }
31 0 elsif (1993 <= $year and $year <= 2097) { }
270 27 8 if (1902 <= $year and $year <= 2022) { }
8 0 elsif (2026 <= $year and $year <= 2098) { }
273 0 33 if (1903 <= $year and $year <= 1923) { }
33 0 elsif (1927 <= $year and $year <= 2055) { }
0 0 elsif (2059 <= $year and $year <= 2099) { }
288 38 122 if ($mod == 0) { }
38 84 elsif ($mod == 1) { }
39 45 elsif ($mod == 2) { }
45 0 elsif ($mod == 3) { }
289 0 38 if ($year == 1900) { }
28 10 elsif (1904 <= $year and $year <= 2008) { }
10 0 elsif (2012 <= $year and $year <= 2096) { }
293 0 38 if (1901 <= $year and $year <= 1917) { }
38 0 elsif (1921 <= $year and $year <= 2041) { }
0 0 elsif (2045 <= $year and $year <= 2097) { }
297 0 39 if (1902 <= $year and $year <= 1946) { }
39 0 elsif (1950 <= $year and $year <= 2074) { }
0 0 elsif (2078 <= $year and $year <= 2098) { }
301 8 37 if (1903 <= $year and $year <= 1979) { }
37 0 elsif (1983 <= $year and $year <= 2099) { }
313 321 782 if $year < 1973
319 176 1158 if ($wday == 0)
321 86 90 if ($year >= 2007) { }
327 90 0 unless exists $holidays_tbl->{$furikae_day}
341 0 2360 unless $holiday_tbl = lookup_holiday_table($year)
344 1555 805 if (exists $holiday_tbl->{$mon})
351 127 2233 if ($year >= 2000 and $mon == 1)
354 77 2283 if ($year >= 2000 and $year <= 2019 and $mon == 10) { }
3 2280 elsif ($year == 2020 and $mon == 7) { }
31 4135 elsif ($year >= 2021 and $mon == 10) { }
365 35 2325 if ($year >= 2003 and $mon == 7)
366 32 3 if ($year != 2020) { }
373 68 2292 if ($year >= 2003 and $mon == 9)
376 135 2225 if ($mon == 3)
377 160 2200 if ($mon == 9)
381 27 2333 if (exists $ExceptionalHoliday{$yymm})
394 31 592 if ($mon > 12)
405 186 1060 if ($mon < 1)
417 0 1114 unless defined $holidays
420 623 491 if ($year >= 1986)
427 623 0 if ($next_holidays)
434 623 0 if ($prev_holidays)
442 60 998 if (exists $holidays_search_table{$day + 2} and not exists $holidays_search_table{$day + 1})
447 8 52 if $wday == 0
450 8 44 if $wday == 6
458 1103 11 if ($furikae)
478 1 1094 if ($year == $Cache_holidays_Year and $mon == $Cache_holidays_Month) { }
483 0 1094 unless defined $holidays
490 244 851 unless exists $holidays->{$day}
492 3 848 if not $furikae and $holidays->{$day} eq $FurikaeStr