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
176 3 25 65 not looks_like_number $label and exists $HOLIDAYS{$label . " $AD"}
346 2 1 0 exists $$hols{$date} and $$hols{$date} =~ /^\Q$holname\E/i

or 2 conditions

line l !l condition
269 80 0 $HOLIDAYS{$holiday} || die()
301 0 0 interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
324 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
145 33 3 0 $rev_regions{lc $region_name} || croak("`${region_name}' is not a valid NZ region name")
153 5 1 0 $regions{$region} || croak("no such NZ region code `${region}'")
207 2 1 7 exists $$h{$to_fall_on} or UnixDate($year . $to_fall_on, '%w') >= 6
296 72 8 0 $holiday_cache{$year} ||= nz_stat_holidays($year)
301 0 0 0 $regional_holiday_cache{"$year/$rd"} ||= interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
315 168 0 0 $holiday_cache{$year} ||= nz_stat_holidays($year)
324 3 81 0 $regional_holiday_cache{"$year/$rd"} ||= interpret_date($year, $HOLIDAYS{$rd} || die()) || die("couldn't interpret $year, $HOLIDAYS{$rd}")
356 2 1 0 $regional_holiday_cache{"$year/$holname"} || interpret_date($year, $HOLIDAYS{$holname})