Condition Coverage

lib/Cron/Toolkit.pm
Criterion Covered Total %
condition 83 145 57.2


and 3 conditions

line !l l&&!r l&&r condition
299 0 0 0 $fields[5] =~ /\b0\b/ and not $fields[5] =~ /#\d+/
322 25 34 29 $fields[3] ne "?" and $fields[5] eq "*"
54 3 2 $fields[3] eq "*" and $fields[5] ne "?"
32 25 0 $fields[3] eq "?" and $fields[5] eq "?"
428 1 8 0 @values >= 2 and $values[-1] - $values[0] == $#values
453 76 25 1 $dow_node->type eq "single" and $dow_node->{'value'} == 0
503 0 0 4 $day >= $min and $day <= $max
532 0 0 3 $day >= 1 and $day <= 31
542 0 0 9 $day >= 1 and $day <= 7
543 0 0 9 $nth >= 1 and $nth <= 5
552 0 0 323 $value >= $min and $value <= $max
561 0 0 18 $start >= $min and $start <= $max
562 0 0 18 $end >= $min and $end <= $max
563 14 4 0 $start > $end and $field ne "dow"
569 8 6 4 $field eq "dow" and $start > $end
575 0 0 7 $step >= $min and $step <= $max
576 6 1 0 $base_str ne "*" and $base_str < $min || $base_str > $max
598 0 0 2 $start >= $min and $start <= $max
599 0 0 2 $end >= $min and $end <= $max
603 2 0 0 $field eq "dow" and $start > $end
607 2 0 0 $start > $end and $field ne "dow"
673 0 0 0 defined $new_begin and $new_begin =~ /^\d+$/
0 0 0 defined $new_begin and $new_begin =~ /^\d+$/ and $new_begin >= 0
682 0 0 0 $new_end =~ /^\d+$/ and $new_end >= 0
762 0 0 1 defined $content and length $content
787 26 5 1 @cron_parts == 0 and $part =~ /^@/
804 0 0 5 @cron_parts >= 5 and @cron_parts <= 7
895 22 3 16 $_->type eq 'single' && $_->value == 0
906 37 45 0 defined $nodes[3] and defined $nodes[5]
918 18 37 27 defined $nodes[4] and $nodes[4]->type ne "wildcard"
55 26 1 defined $nodes[4] and $nodes[4]->type ne "wildcard" and not defined $nodes[3]
63 0 1 defined $nodes[4] and $nodes[4]->type ne "wildcard" and not defined $nodes[3] and not defined $nodes[5]
922 0 60 22 defined $nodes[6] and $nodes[6]->type ne "wildcard"

or 2 conditions

line l !l condition
787 26 5 $part =~ m[^[0-9*?,/\-L#W?]+$] or scalar grep({$part =~ /$_/;} keys %Cron::Toolkit::DOW_MAP_UNIX)
1 4 $part =~ m[^[0-9*?,/\-L#W?]+$] or scalar grep({$part =~ /$_/;} keys %Cron::Toolkit::DOW_MAP_UNIX) or scalar grep({$part =~ /$_/;} keys %Cron::Toolkit::MONTH_MAP)

or 3 conditions

line l !l&&r !l&&!r condition
502 3 1 0 $day //= $max
576 0 0 1 $base_str < $min || $base_str > $max
650 0 0 48 not $offset =~ /^-?\d+$/ or $offset < -1080
0 0 48 not $offset =~ /^-?\d+$/ or $offset < -1080 or $offset > 1080
682 0 0 0 not defined $new_end or $new_end =~ /^\d+$/ and $new_end >= 0
804 1 5 0 $is_alias or @cron_parts >= 5 and @cron_parts <= 7
861 705 20 119 $type eq "single" or $type eq "last"
725 2 117 $type eq "single" or $type eq "last" or $type eq "lastW"
22 18 99 $type eq "single" or $type eq "last" or $type eq "lastW" or $type eq "nth"
20 6 93 $type eq "single" or $type eq "last" or $type eq "lastW" or $type eq "nth" or $type eq "nearest_weekday"
24 18 75 $type eq "single" or $type eq "last" or $type eq "lastW" or $type eq "nth" or $type eq "nearest_weekday" or $type eq "step_value"
882 82 37 455 $node->type eq 'unspecified' || $node->type eq 'wildcard' && $prev_type eq 'wildcard'
955 82 0 0 $epoch_seconds //= time
1023 82 0 0 $epoch_seconds //= time