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
213 0 0 9 $valid_date and $valid_time
251 0 0 6 $valid_date and $valid_time
310 2883 0 24 exists $self->{'Datetime'} and $method eq "now"
424 361 1 10240 $self->_get_valid_exp && !$self->_get_failure
435 0 1 4 defined $self->{'mode'} and length $self->{'mode'}
518 582303 2964 8573 $valid_expression and @{$expression->[2];}
573 0 8728 11765 defined $units[$index] and not exists $self->{'modified'}{$units[$index]}
588 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'})
621 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 {
631 1344 18 36 $self->{'tokens'}[0] =~ /$day/ and $self->{'tokens'}[1] =~ /$weekday/

or 2 conditions

line l !l condition
71 38 10542 $opts{'daytime'} || {}
205 9 9 $args{$_} ||= 1
208 9 9 $args{$_} ||= 0
444 1 3 $self->_get_error || '(perhaps you have some garbage?)'
725 1560 6246 $tz || 'floating'

or 3 conditions

line l !l&&r !l&&!r condition
43 0 10581 0 ref $class || $class
195 18 18 156 $self->{'Prefer_future'} or $self->{'Demand_future'}
588 1068 1050 9413 $self->{'Prefer_future'} || $self->{'Demand_future'}
621 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