Condition Coverage

blib/lib/App/JobLog/TimeGrammar.pm
Criterion Covered Total %
condition 40 81 49.3


and 3 conditions

line !l l&&!r l&&r condition
312 416 0 0 $suffix eq 'p' and $hour < 12
314 416 0 0 $hour == 12 and $suffix eq 'a'
315 80 336 0 $suffix eq 'a' and $hour > 12
322 80 336 0 $suffix eq 'a' and $hour == 12
361 421 20 0 $d2 and $matches{$d2}
389 0 0 0 $h1->year == $h2->year and $h1->month == $h2->month
0 0 0 $h1->year == $h2->year and $h1->month == $h2->month and $h1->day == $h2->day
0 0 0 $h1->year == $h2->year and $h1->month == $h2->month and $h1->day == $h2->day and $h2->hour < 12
0 0 0 $h1->year == $h2->year and $h1->month == $h2->month and $h1->day == $h2->day and $h2->hour < 12 and $s2 eq 'x'
413 390 1 50 keys %$h1 == 2 and keys %$h2 == 2
391 50 0 keys %$h1 == 2 and keys %$h2 == 2 and $h1->{'period'}
47 3 0 keys %$h1 == 2 and keys %$h2 == 2 and $h1->{'period'} and $h2->{'period'}
554 3 4 81 exists $h->{'day'} and not $h->{'day'} =~ /^\d++$/u
821 0 0 2 $h1->{'month'} and not $h2->{'month'}

or 2 conditions

line l !l condition
311 416 0 $+{'minute'} || 0
16 400 $+{'second'} || 0
336 80 $+{'suffix'} || 'x'
465 81 0 $ref->{'day_of_week'} || die('should always be day_of_week key at this point')
576 86 3 $h->{'day'} // 1
851 48 188 $h->{'modifier'} or ''

or 3 conditions

line l !l&&r !l&&!r condition
315 0 0 416 $hour > 23 or $minute > 59
0 0 416 $hour > 23 or $minute > 59 or $second > 59
0 0 416 $hour > 23 or $minute > 59 or $second > 59 or $suffix eq 'a' and $hour > 12
500 17 175 164 $two_endpoints or $h2->{'type'} ne 'numeric'
573 0 89 0 $h->{'year'} //= $date->year
574 89 0 0 $h->{'month'} //= $date->month
578 86 1 2 exists $h->{'day'} or $is_start
814 0 0 0 $h2->{$k} //= $v
817 0 0 0 $h1->{$k} //= $v