Branch Coverage

blib/lib/Date/Holidays/UA.pm
Criterion Covered Total %
branch 46 60 76.6


line true false branch
106 0 150 unless ref $args_ref
130 174 24 is_ua_holiday(@_) ? :
146 99 66 ref $_ eq 'DateTime' ? :
163 198 132 if ref $_[0]
172 132 198 unless (defined $self)
179 0 330 unless $calendar
182 290 2440 if ($holiday_dt->month == $month and $holiday_dt->day == $day)
207 16 12 if ref $_[0]
212 12 16 unless (defined $self)
219 0 28 unless $calendar
245 0 4 if ref $_[0]
250 4 0 unless (defined $self)
257 0 4 unless $calendar
272 0 696 unless $holiday
0 696 unless $holiday and keys %{{} unless $holiday;}
274 377 319 lc $self->{'language'} eq 'ua' ? :
289 0 362 unless $year
292 302 4042 if $holiday_rule->{'start_year'} and $year <= $holiday_rule->{'start_year'}
293 206 3836 if $holiday_rule->{'end_year'} and $year >= $holiday_rule->{'end_year'}
295 724 3112 if ($holiday_rule->{'is_easter_depend'}) { }
329 0 362 unless $calendar
0 362 unless scalar @{[] unless $calendar;}
332 0 362 unless $calendar
333 0 3836 unless $holiday->{'dt'}
338 1418 2418 {6 => 1, 7 => 1}->{$dt->day_of_week} ? :
340 1418 2418 if ($is_weekend)
343 362 1514 if {6 => 1, 7 => 1}->{$dt_next->day_of_week}
345 0 1514 unless $calc
96 1418 scalar grep({'DateTime'->compare($dt_next, $_->{'dt'}) == 0;} @{[] unless $calc;}) ? :
347 1418 96 unless ($is_holiday)