Branch Coverage

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


line true false branch
105 98 35 if $self->{'_seconds'}
119 1 34 if ($interval ne "")
226 19 34 unless ($self->seconds % $period_length)
263 10 51 if $$self{"_duration_array_$precision"}
271 31 144 if $precision_counter > $precision
280 144 0 if (defined $value and $value)
284 50 94 if $value == 0
285 52 92 if $value > 1
287 94 50 if ($frame)
293 1 50 unless (scalar @time_frame)
309 5 2 $self->_minimum_number_of($unit) >= 2 ? :
326 6 8 if length $unit > 1
328 1 13 if $orig_unit =~ /^months|^mo/gi
339 1 13 unless $method
361 86 34 if $self->{'_duration'}
403 2 41 ref $_[0] ? :
407 1 42 unless defined $interval
410 4 38 if ($popular{$interval})
415 38 0 if (defined $interval)
416 1 37 if $interval eq ""
424 2 35 unless ($interval =~ /[A-Za-z]/)