Condition Coverage

blib/lib/Date/RangeParser/EN.pm
Criterion Covered Total %
condition 31 38 81.5


and 3 conditions

line !l l&&!r l&&r condition
415 2 216 3 not $string =~ /^\d+-\d+$/ and $string =~ /^[^-]+-[^-]+$/
818 3 3 1 defined $y and $y eq "last"
3 2 1 defined $y and $y eq "next"
951 6 16 50 $beg->hms eq "00:00:00" and $end->hms eq "00:00:00"
22 1 49 $beg->hms eq "00:00:00" and $end->hms eq "00:00:00" and not $string =~ /(midnight|00:00:00|12(:00){0,2}AM)/

or 2 conditions

line l !l condition
399 2 2 $1 || 1
407 3 0 $1 || 1
505 4 4 $offset // 1
1004 1 116 $self->{'datetime_class'} || 'DateTime'
1009 0 10 $self->{'infinite_future_class'} || 'DateTime::Infinite::Future'
1014 0 11 $self->{'infinite_past_class'} || 'DateTime::Infinite::Past'
1041 2 88 $Date::Manip::Backend || ''

or 3 conditions

line l !l&&r !l&&!r condition
415 6 0 212 $string eq "today" or $string =~ /^(?:this|current) day$/
799 3 0 0 $3 eq "from now" or $3 eq "hence"
1042 0 2 88 $Date::Manip::VERSION lt 6 or $dm_backend eq "DM5"