Branch Coverage

blib/lib/Date/Extract.pm
Criterion Covered Total %
branch 24 26 92.3


line true false branch
27 1 4 if ($args{'format'} ne 'DateTime' and $args{'format'} ne 'verbatim' and $args{'format'} ne 'epoch')
33 1 2 if ($args{'returns'} ne 'first' and $args{'returns'} ne 'last' and $args{'returns'} ne 'earliest' and $args{'returns'} ne 'latest' and $args{'returns'} ne 'all' and $args{'returns'} ne 'all_cron')
42 1 1 if ($args{'prefers'} ne 'nearest' and $args{'prefers'} ne 'past' and $args{'prefers'} ne 'future')
74 19 38 unless ref $self
82 51 6 unless wantarray
121 0 5 if $other
167 2 2 $a < $b ? :
168 1 1 $a > $b ? :
189 57 0 defined $handler ? :
200 1 56 if $self->{'format'} eq 'verbatim'
204 25 31 if $args{'prefers'} and $args{'prefers'} eq 'future'
212 75 3 if $parser->success
215 1 55 if ($self->{'format'} eq 'epoch')