Branch Coverage

blib/lib/Time/Duration/Concise.pm
Criterion Covered Total %
branch 40 42 95.2


line true false branch
109 98 35 if $self->{'_seconds'}
123 1 34 if ($interval ne '')
231 19 34 unless ($self->seconds % $period_length)
270 10 51 if $$self{"_duration_array_$precision"}
278 31 144 if $precision_counter > $precision
287 144 0 if (defined $value and $value)
291 50 94 if $value == 0
292 52 92 if $value > 1
294 94 50 if ($frame)
300 1 50 unless (scalar @time_frame)
316 5 2 $self->_minimum_number_of($unit) >= 2 ? :
333 6 8 if length $unit > 1
335 1 13 if $orig_unit =~ /^months|^mo/gi
346 1 13 unless $method
368 86 34 if $self->{'_duration'}
410 2 41 ref $_[0] ? :
414 1 42 unless defined $interval
417 4 38 if ($popular{$interval})
422 38 0 if (defined $interval)
423 1 37 if $interval eq ''
432 2 35 unless ($interval =~ /[A-Za-z]/)