Branch Coverage

blib/lib/Date/Extract/DE.pm
Criterion Covered Total %
branch 46 56 82.1


line true false branch
152 48 8 if $self->month_nr($month)
159 8 64 if $self->day_nr(lc $day)
167 2 12 if ($year < 30) { }
2 10 elsif ($year < 100) { }
182 6 32 if (defined $self->lookback_days and $result < $self->reference_date and $self->reference_date - $result > $self->lookback_days)
195 18 32 if (exists $date->{'conjugator'}) { }
196 12 6 unless $date->{'month2'}
197 14 4 if (not $date->{'year1'} || $date->{'year2'}) { }
2 2 elsif ($date->{'year1'} and not $date->{'year2'}) { }
0 2 elsif (not $date->{'year1'} and $date->{'year2'}) { }
209 2 12 if (1 == 'DateTime'->compare_ignore_floating($dti1, $dti2)) { }
227 0 2 if (1 == 'DateTime'->compare_ignore_floating($dti1, $dti2)) { }
245 0 0 if (1 == 'DateTime'->compare_ignore_floating($dti1, $dti2)) { }
254 8 10 if ($date->{'conjugator'} eq 'range') { }
10 0 elsif ($date->{'conjugator'} eq 'enum') { }
282 2 8 if ($date->{'conjugator'} ne 'range' and $date->{'days0'})
296 24 8 if (not $date->{'year1'}) { }
381 18 132 if (exists $date->{$c})
382 12 6 if ($c eq 'and') { }
383 2 10 if (exists $date->{'between'}) { }
396 50 0 if $date->{'day1'}
398 18 32 if $date->{'day2'}
400 50 0 if $date->{'month1'}
402 6 44 if $date->{'month2'}
404 12 38 if $date->{'year1'}
406 2 48 if $date->{'year2'}
409 0 50 unless (eval {
410 0 0 if $@