Condition Coverage

blib/lib/Date/Holidays/NZ.pm
Criterion Covered Total %
condition 21 36 58.3


and 3 conditions

line !l l&&!r l&&r condition
178 3 25 65 not &looks_like_number($label) and exists $HOLIDAYS{$label . " $AD"}
354 2 0 1 exists $hols->{$date} and $hols->{$date} =~ /^\Q$holname\E/i

or 2 conditions

line l !l condition
277 110 0 $holidays{$holiday} || die()
310 0 0 interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
333 81 0 interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")

or 3 conditions

line l !l&&r !l&&!r condition
147 33 3 0 $rev_regions{lc $region_name} || croak("`${region_name}' is not a valid NZ region name")
155 5 1 0 $regions{$region} || croak("no such NZ region code `${region}'")
209 2 5 12 exists $h->{$to_fall_on} or UnixDate($year . $to_fall_on, '%w') >= 6
304 74 11 0 $holiday_cache{$year} ||= nz_stat_holidays($year)
310 0 0 0 $regional_holiday_cache{"$year/$rd"} ||= interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
323 168 0 0 $holiday_cache{$year} ||= nz_stat_holidays($year)
333 3 81 0 $regional_holiday_cache{"$year/$rd"} ||= interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
365 2 1 0 $regional_holiday_cache{"$year/$holname"} || interpret_date($year, $HOLIDAYS{$holname})