Condition Coverage

blib/lib/DateTime/Event/Cron/Quartz.pm
Criterion Covered Total %
condition 144 243 59.2


and 3 conditions

line !l l&&!r l&&r condition
119 0 0 0 defined $time_after && 'DateTime'->compare($time_after, $date) == 0
209 221 41 2 $expr_on == $DAY_OF_MONTH and index($expr, 'L') != -1
262 1 1 $expr_on == $DAY_OF_MONTH and index($expr, 'L') != -1 and length $expr > 1
42 1 0 $expr_on == $DAY_OF_MONTH and index($expr, 'L') != -1 and length $expr > 1 and index($expr, ',') >= 0
223 225 37 2 $expr_on == $DAY_OF_WEEK and index($expr, 'L') != -1
262 0 2 $expr_on == $DAY_OF_WEEK and index($expr, 'L') != -1 and length $expr > 1
37 2 0 $expr_on == $DAY_OF_WEEK and index($expr, 'L') != -1 and length $expr > 1 and index($expr, ',') >= 0
265 17 0 21 $day_of_m_spec and not $day_of_w_spec
0 0 17 $day_of_w_spec and not $day_of_m_spec
305 319 0 9 ord $c >= 65 and ord $c <= 90
319 1 8 ord $c >= 65 and ord $c <= 90 and not $s eq 'L'
1 1 7 ord $c >= 65 and ord $c <= 90 and not $s eq 'L' and not $s eq 'LW'
400 0 0 0 substr($s, $i, 1) ne ' ' and substr($s, $i + 1, 1) ne "\t"
39 0 0 $i + 1 < length $s and (substr($s, $i, 1) ne ' ' and substr($s, $i + 1, 1) ne "\t")
409 21 18 0 $type != $DAY_OF_WEEK and $type != $DAY_OF_MONTH
416 18 2 19 $type == $DAY_OF_WEEK and not $this->lastday_of_month
431 1 0 168 ord $c >= 48 and ord $c <= 57
432 0 1 110 $c eq '*' and $i + 1 >= length $s
1 0 0 $c eq '/' and $i + 1 >= length $s || substr($s, $i + 1, 1) eq ' ' || substr($s, $i + 1, 1) eq '\\t'
467 1 0 0 $incr > 59 and $type == $SECOND || $type == $MINUTE
0 1 0 $incr > 23 and $type == $HOUR
1 0 0 $incr > 31 and $type == $DAY_OF_MONTH
0 1 0 $incr > 7 and $type == $DAY_OF_WEEK
0 1 0 $incr > 12 and $type == $MONTH
513 0 1 1 $type == $DAY_OF_MONTH and length $s > $i
530 3 2 64 ord $c >= 48 and ord $c <= 57
639 0 0 1 $c >= 0 and $c <= 9
647 1 0 0 $i < length $s and ($c = substr($s, $i, 1)) eq '/'
657 0 0 0 $c >= '0' and $c <= '9'
687 0 0 0 $c >= '0' and $c <= '9'
718 0 328 0 $i < length $s and substr($s, $i, 1) eq ' ' || substr($s, $i, 1) eq '\\t'
736 1 2 0 $i < length $s and substr($s, $i, 1) ne ' ' || substr($s, $i, 1) ne '\\t'
758 75 17 1 $val < 0 || $val > 59 || $end > 59 and $val != $ALL_SPEC_INT
768 42 10 1 $val < 0 || $val > 23 || $end > 23 and $val != $ALL_SPEC_INT
778 15 9 20 $val < 1 || $val > 31 || $end > 31 and $val != $ALL_SPEC_INT
24 18 2 $val < 1 || $val > 31 || $end > 31 and $val != $ALL_SPEC_INT and $val != $NO_SPEC_INT
789 17 32 2 $val < 1 || $val > 12 || $end > 12 and $val != $ALL_SPEC_INT
799 12 6 22 $val == 0 || $val > 7 || $end > 7 and $val != $ALL_SPEC_INT
18 21 1 $val == 0 || $val > 7 || $end > 7 and $val != $ALL_SPEC_INT and $val != $NO_SPEC_INT
810 4 110 198 $incr == 0 || $incr == -1 and $val != $ALL_SPEC_INT
826 3 1 110 $val == $ALL_SPEC_INT and $incr <= 0
927 0 0 0 $i2 == 0 and $type == $MONTH || $type == $DAY_OF_WEEK || $type == $DAY_OF_MONTH
981 1 1 69 ord $c >= 48 and ord $c <= 57
1085 89 0 466 defined $st and $st->size != 0
1102 68 0 487 defined $st and $st->size != 0
1128 59 0 287 defined $st and $st->size != 0
1163 78 0 112 $day_of_m_spec and not $day_of_w_spec
0 0 78 $day_of_w_spec and not $day_of_m_spec
1167 13 0 84 defined $st and $st->size != 0
1188 4 2 0 $dow == $SATURDAY and $day == 1
4 0 0 $dow == $SUNDAY and $day == $ldom
1232 3 2 0 $dow == $SATURDAY and $day == 1
3 0 0 $dow == $SUNDAY and $day == $ldom
1400 8 0 46 defined $st and $st->size > 0
1468 12 0 102 defined $st and $st->size != 0
1497 0 0 97 defined $st and $st->size != 0

or 3 conditions

line l !l&&r !l&&!r condition
362 0 0 0 $this->nthday_of_week < 1 or $this->nthday_of_week > 5
431 111 0 171 $c eq '*' or $c eq '/'
432 0 0 0 $i + 1 >= length $s || substr($s, $i + 1, 1) eq ' ' || substr($s, $i + 1, 1) eq '\\t'
467 0 0 0 $type == $SECOND || $type == $MINUTE
608 0 0 1 $this->nthday_of_week < 1 or $this->nthday_of_week > 5
718 0 0 328 substr($s, $i, 1) eq ' ' || substr($s, $i, 1) eq '\\t'
736 2 0 0 substr($s, $i, 1) ne ' ' || substr($s, $i, 1) ne '\\t'
757 46 47 226 $type == $SECOND or $type == $MINUTE
758 18 0 75 $val < 0 || $val > 59 || $end > 59
768 11 0 42 $val < 0 || $val > 23 || $end > 23
778 29 0 15 $val < 1 || $val > 31 || $end > 31
789 34 0 17 $val < 1 || $val > 12 || $end > 12
799 28 0 12 $val == 0 || $val > 7 || $end > 7
810 154 154 4 $incr == 0 || $incr == -1
831 6 12 96 $type == $SECOND or $type == $MINUTE
835 0 17 1 $start_at == -1 or $start_at == $ALL_SPEC_INT
843 0 10 0 $start_at == -1 or $start_at == $ALL_SPEC_INT
851 0 9 0 $start_at == -1 or $start_at == $ALL_SPEC_INT
859 0 32 0 $start_at == -1 or $start_at == $ALL_SPEC_INT
867 0 6 1 $start_at == -1 or $start_at == $ALL_SPEC_INT
875 0 37 1 $start_at == -1 or $start_at == $ALL_SPEC_INT
927 0 0 0 $type == $MONTH || $type == $DAY_OF_WEEK || $type == $DAY_OF_MONTH
1275 42 1 69 $day != $t or $mon != $tmon
1370 2 0 6 $days_to_add < 0 or $day > $this->getlastday_of_month($mon, $cl->year)
3 0 3 $days_to_add > 0 or $day_shifted