Condition Coverage

blib/lib/Date/Utility.pm
Criterion Covered Total %
condition 38 50 76.0


and 3 conditions

line !l l&&!r l&&r condition
427 7 39 0 $params_ref->{'datetime'} and $params_ref->{'epoch'}
532 35 9 1 $year > 30 and $year < 70
794 0 2 3 ($year % 4 || !($year % 100)) && $year % 400
1088 1 2 3 defined $date && $date =~ /^\d{1,2}\-\w{3}-\d{2}$/
1179 0 1 7 &looks_like_number($years) and $years == int $years
1232 0 1 21 &looks_like_number($months) and $months == int $months

or 2 conditions

line l !l condition
790 5 17 $shorties{$month} || 31
929 0 0 $ti //= "undef"
982 8009 0 $dow_abb //= "undef"
1076 5 1 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
397 1 1 1 $self->day_of_week == 0 || $self->day_of_week == 6
427 39 7 1 $params_ref->{'datetime'} || $params_ref->{'epoch'}
853 0 0 48 $tzname eq "UTC" or $tzname eq "Z"
871 0 0 200048 $tzname eq "UTC" or $tzname eq "Z"
984 8007 2 0 $days_to_num{lc $dow_abb} // croak("Invalid day of week. We got [" . $dow_abb . "]")
1148 2 1 3 not $today_obj or $time > $today_ends_at
3 1 2 not $today_obj or $time > $today_ends_at or $time < $today_starts_at
1235 3 2 16 $new_month < 1 or $new_month > 12