Branch Coverage

blib/lib/DateTime/Format/Natural/Duration.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
20 0 3637 unless my $check = $class->can($sub)
27 55 1203 if (&$check_if('for', \$present)) { }
27 1176 elsif (&$check_if('first_to_last', \$extract)) { }
899 277 elsif (&$check_if('from_count_to_count', \$extract, \$adjust, \@indexes)) { }
32 48 7 if ($self->{'running_tests'})
37 27 0 if (my($complete) = $date_strings->[1] =~ /$extract/)
42 899 0 if (my($complete) = $$date_strings[$indexes[0]] =~ /$extract/)
58 268 990 unless $self->{'running_tests'}
60 55 1203 if (&all(sub {
70 3 2294 if %{$self->{'state'};}
72 3 2291 unless ($args{'valid_expression'})
83 3 1255 if (%state)
85 0 3 $state{'valid_expression'} ? :
89 1 2 $state{'failure'} ? :
94 1 2 defined $state{'error'} ? :