Branch Coverage

blib/lib/Calendar/Japanese/Holiday.pm
Criterion Covered Total %
branch 104 136 76.4


line true false branch
225 76 3670 if ($mon == 2 and $year % 4 == 0)
226 6 70 if ($year % 100 == 0)
227 6 0 if $year % 400 == 0
250 10621 1737 if $day > 0
261 2444 15328 if $tbl->{'start'} <= $year and $year <= $tbl->{'end'}
276 33 108 if ($mod == 0) { }
34 74 elsif ($mod == 1) { }
35 39 elsif ($mod == 2) { }
39 0 elsif ($mod == 3) { }
277 0 33 if (1900 <= $year and $year <= 1956) { }
33 0 elsif (1960 <= $year and $year <= 2088) { }
0 0 elsif (2092 <= $year and $year <= 2096) { }
281 3 31 if (1901 <= $year and $year <= 1989) { }
31 0 elsif (1993 <= $year and $year <= 2097) { }
284 27 8 if (1902 <= $year and $year <= 2022) { }
8 0 elsif (2026 <= $year and $year <= 2098) { }
287 0 39 if (1903 <= $year and $year <= 1923) { }
39 0 elsif (1927 <= $year and $year <= 2055) { }
0 0 elsif (2059 <= $year and $year <= 2099) { }
302 38 129 if ($mod == 0) { }
38 91 elsif ($mod == 1) { }
40 51 elsif ($mod == 2) { }
51 0 elsif ($mod == 3) { }
303 0 38 if ($year == 1900) { }
28 10 elsif (1904 <= $year and $year <= 2008) { }
10 0 elsif (2012 <= $year and $year <= 2096) { }
307 0 38 if (1901 <= $year and $year <= 1917) { }
38 0 elsif (1921 <= $year and $year <= 2041) { }
0 0 elsif (2045 <= $year and $year <= 2097) { }
311 0 40 if (1902 <= $year and $year <= 1946) { }
40 0 elsif (1950 <= $year and $year <= 2074) { }
0 0 elsif (2078 <= $year and $year <= 2098) { }
315 8 43 if (1903 <= $year and $year <= 1979) { }
43 0 elsif (1983 <= $year and $year <= 2099) { }
327 321 786 if $year < 1973
333 178 1163 if ($wday == 0)
335 88 90 if ($year >= 2007) { }
341 90 0 unless exists $holidays_tbl->{$furikae_day}
355 0 2444 unless $holiday_tbl = lookup_holiday_table($year)
358 1599 845 if (exists $holiday_tbl->{$mon})
365 134 2310 if ($year >= 2000 and $mon == 1)
368 83 2361 if ($year >= 2000 and $year <= 2019 and $mon == 10) { }
3 2358 elsif ($year == 2020 and $mon == 7) { }
4 2354 elsif ($year == 2021 and $mon == 7) { }
28 4325 elsif ($year >= 2022 and $mon == 10) { }
382 44 2400 if ($year >= 2003 and $mon == 7)
383 3 41 if ($year == 2020) { }
4 37 elsif ($year == 2021) { }
390 75 2369 if ($year >= 2003 and $mon == 9)
393 141 2303 if ($mon == 3)
394 167 2277 if ($mon == 9)
398 39 2405 if (exists $ExceptionalHoliday{$yymm})
411 33 618 if ($mon > 12)
422 192 1110 if ($mon < 1)
434 0 1142 if ($mon < 1 or $mon > 12)
440 0 1142 unless defined $holidays
443 651 491 if ($year >= 1986)
450 651 0 if ($next_holidays)
457 651 0 if ($prev_holidays)
465 64 1035 if (exists $holidays_search_table{$day + 2} and not exists $holidays_search_table{$day + 1})
470 8 56 if $wday == 0
473 8 48 if $wday == 6
481 1107 35 if ($furikae)
503 0 1100 if ($mon < 1 or $mon > 12)
509 2 1098 if ($year == $Cache_holidays_Year and $mon == $Cache_holidays_Month) { }
514 0 1098 unless defined $holidays
521 244 856 unless exists $holidays->{$day}
523 3 853 if not $furikae and $holidays->{$day} eq $FurikaeStr