Branch Coverage

blib/lib/Date/Holidays/EnglandWales.pm
Criterion Covered Total %
branch 38 48 79.1


line true false branch
87 10 9 unless $month
89 0 19 unless my $dt = "DateTime"->new("year", $year, "month", $month, "day", $day)
93 3 16 if ($month == 1)
94 1 2 if $day == 1 and $dt->day_of_week <= 5 or $day == 2 and $dt->day_of_week == 1 or $day == 3 and $dt->day_of_week == 1
101 3 13 if ($year == 2011 and $month == 4)
102 1 2 if $day == 29
105 3 12 if ($month == 5)
106 1 2 if $day >= 1 and $day <= 7 and $dt->day_of_week == 1
109 1 0 if $year != 2012 and $year != 2022 and ($day >= 25 and $dt->day_of_week == 1)
114 0 13 if ($year == 2012 and $month == 6)
115 0 0 if $day == 4
116 0 0 if $day == 5
120 2 11 if ($year == 2022 and $month == 6)
121 1 1 if $day == 2
122 1 0 if $day == 3
125 1 10 if ($year == 2022 and $month == 9)
126 1 0 if $day == 19
129 1 9 if ($month == 8)
130 1 0 if $day >= 25 and $dt->day_of_week == 1
135 5 4 if ($month == 12)
136 1 4 if $day == 25 and $dt->day_of_week <= 5 or $day == 26 and $dt->day_of_week == 1 or $day == 27 and $dt->day_of_week == 1
141 1 3 if $day == 26 and $dt->day_of_week <= 5 or $day == 27 and $dt->day_of_week <= 2 or $day == 28 and $dt->day_of_week <= 2
149 1 3 if &_GoodFriday($year, $month, $day)
153 1 2 if &_Easter($e->year, $e->month, $e->day)