Branch Coverage

blib/lib/DateTime/Format/Natural/Calc.pm
Criterion Covered Total %
branch 30 42 71.4


line true false branch
71 19 390 exists $self->{'Daytime'}{$daytime} ? :
72 409 0 if ($self->_valid_time("hour", $hour))
84 390 0 if ($self->_valid_time("hour", $hour))
96 96 0 if ($self->_valid_time("hour", $hours))
113 2633 0 if ($self->_valid_date("month", $month, "day", $day))
127 85 443 if $opts->{'unit'} eq "month"
128 528 0 if ($self->_valid_date($opts->{'unit'}, $value))
139 723 1596 if ($day > $self->{'datetime'}->wday) { }
161 345 771 $when == 0 ? :
171 54 0 if ($self->_valid_date("day", $day))
196 54 0 if ($self->_valid_date("month", $month))
216 108 0 if ($self->_valid_date("month", $month))
237 90 78 defined $month ? :
241 168 0 if (not $@ and (defined $year and defined $month and defined $day) and $self->_check_date($year, $month, $day)) { }
295 54 8094 if exists $values{'nanosecond'}
296 8148 0 if ($self->_valid_time(%values))
328 6 0 if ($self->_valid_date("year", $year, "month", $month, "day", $day))
344 0 42 $wday < $day ? :
381 30 48 @_ >= 3 ? :
384 39 39 unless (defined $day)
401 6 6 unless (defined $day)