Branch Coverage

blib/lib/Calendar/Japanese/Holiday.pm
Criterion Covered Total %
branch 100 132 75.7


line true false branch
211 76 3655 if ($mon == 2 and $year % 4 == 0)
212 6 70 if ($year % 100 == 0)
213 6 0 if $year % 400 == 0
236 10582 1730 if $day > 0
247 2435 13239 if $tbl->{'start'} <= $year and $year <= $tbl->{'end'}
262 33 108 if ($mod == 0) { }
34 74 elsif ($mod == 1) { }
35 39 elsif ($mod == 2) { }
39 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 39 if (1903 <= $year and $year <= 1923) { }
39 0 elsif (1927 <= $year and $year <= 2055) { }
0 0 elsif (2059 <= $year and $year <= 2099) { }
288 38 128 if ($mod == 0) { }
38 90 elsif ($mod == 1) { }
39 51 elsif ($mod == 2) { }
51 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 43 if (1903 <= $year and $year <= 1979) { }
43 0 elsif (1983 <= $year and $year <= 2099) { }
313 321 783 if $year < 1973
319 176 1160 if ($wday == 0)
321 86 90 if ($year >= 2007) { }
327 90 0 unless exists $holidays_tbl->{$furikae_day}
341 0 2435 unless $holiday_tbl = lookup_holiday_table($year)
344 1596 839 if (exists $holiday_tbl->{$mon})
351 134 2301 if ($year >= 2000 and $mon == 1)
354 83 2352 if ($year >= 2000 and $year <= 2019 and $mon == 10) { }
3 2349 elsif ($year == 2020 and $mon == 7) { }
31 4273 elsif ($year >= 2021 and $mon == 10) { }
365 41 2394 if ($year >= 2003 and $mon == 7)
366 38 3 if ($year != 2020) { }
373 74 2361 if ($year >= 2003 and $mon == 9)
376 141 2294 if ($mon == 3)
377 166 2269 if ($mon == 9)
381 39 2396 if (exists $ExceptionalHoliday{$yymm})
394 33 615 if ($mon > 12)
405 192 1104 if ($mon < 1)
417 0 1139 if ($mon < 1 or $mon > 12)
423 0 1139 unless defined $holidays
426 648 491 if ($year >= 1986)
433 648 0 if ($next_holidays)
440 648 0 if ($prev_holidays)
448 64 1030 if (exists $holidays_search_table{$day + 2} and not exists $holidays_search_table{$day + 1})
453 8 56 if $wday == 0
456 8 48 if $wday == 6
464 1104 35 if ($furikae)
486 0 1097 if ($mon < 1 or $mon > 12)
492 2 1095 if ($year == $Cache_holidays_Year and $mon == $Cache_holidays_Month) { }
497 0 1095 unless defined $holidays
504 244 853 unless exists $holidays->{$day}
506 3 850 if not $furikae and $holidays->{$day} eq $FurikaeStr