Condition Coverage

blib/lib/DateTime/Format/Natural.pm
Criterion Covered Total %
condition 73 106 68.8


and 3 conditions

line !l l&&!r l&&r condition
235 0 0 9 $valid_date and $valid_time
273 0 0 6 $valid_date and $valid_time
332 2883 0 24 exists $self->{'Datetime'} and $method eq "now"
446 361 1 10240 $self->_get_valid_exp && !$self->_get_failure
457 0 1 4 defined $self->{'mode'} and length $self->{'mode'}
540 547816 2964 8573 $valid_expression and @{$expression->[2];}
595 0 8728 11759 defined $units[$index] and not exists $self->{'modified'}{$units[$index]}
610 48 0 2070 exists $opts{'advance_future'} and $opts{'advance_future'}
9413 0 2118 $self->{'Prefer_future'} || $self->{'Demand_future'} and (exists $opts{'advance_future'} and $opts{'advance_future'})
643 0 0 450 exists $self->{'modified'}{'hour'} and $self->{'modified'}{'hour'} == 1
1656 0 450 &all(sub {
0 216 234 &all(sub {
1836 0 36 sub {
1836 36 0 sub {
306 18 1530 &$token_contains("weekdays_all") and not $skip_weekdays
0 0 1530 exists $self->{'modified'}{'day'} and $self->{'modified'}{'day'} == 1
324 0 1530 &$token_contains("weekdays_all") and not $skip_weekdays and (exists $self->{'modified'}{'day'} and $self->{'modified'}{'day'} == 1)
0 1530 0 &$token_contains("weekdays_all") and not $skip_weekdays and (exists $self->{'modified'}{'day'} and $self->{'modified'}{'day'} == 1) and $self->{'Prefer_future'} && &$day_of_week($self) < $now->wday || $self->{'Demand_future'} && &$day_of_week($self) <= $now->wday
576 0 90 &$token_contains('months_all') || $advance{'md'} and &all(sub {
0 0 90 exists $self->{'modified'}{'month'} and $self->{'modified'}{'month'} == 1
576 0 90 &$token_contains('months_all') || $advance{'md'} and &all(sub {
0 0 90 &$token_contains('months_all') || $advance{'md'} and &all(sub {
0 90 0 &$token_contains('months_all') || $advance{'md'} and &all(sub {
653 1344 18 36 $self->{'tokens'}[0] =~ /$day/ and $self->{'tokens'}[1] =~ /$weekday/

or 2 conditions

line l !l condition
71 39 10542 $opts{'daytime'} || {}
227 9 9 $args{$_} ||= 1
230 9 9 $args{$_} ||= 0
466 1 3 $self->_get_error || '(perhaps you have some garbage?)'
747 1560 6246 $tz || 'floating'

or 3 conditions

line l !l&&r !l&&!r condition
43 0 10582 0 ref $class || $class
217 18 18 156 $self->{'Prefer_future'} or $self->{'Demand_future'}
610 1068 1050 9413 $self->{'Prefer_future'} || $self->{'Demand_future'}
643 114 120 216 $self->{'Prefer_future'} && $self->{'datetime'} < $now || $self->{'Demand_future'} && $self->{'datetime'} <= $now
6 0 30 $self->{'Prefer_future'} && $self->{'datetime'}->day < $now->day || $self->{'Demand_future'} && $self->{'datetime'}->day <= $now->day
546 0 984 $self->{'Prefer_future'} && &$day_of_week($self) < $now->wday || $self->{'Demand_future'} && &$day_of_week($self) <= $now->wday
54 36 576 &$token_contains('months_all') || $advance{'md'}
36 0 54 $self->{'Prefer_future'} && $self->{'datetime'}->day_of_year < $now->day_of_year || $self->{'Demand_future'} && $self->{'datetime'}->day_of_year <= $now->day_of_year