Condition Coverage

blib/lib/Config/Crontab.pm
Criterion Covered Total %
condition 32 51 62.7


and 3 conditions

line !l l&&!r l&&r condition
85 32 3 0 $self->system and not $self->file
248 0 0 238 defined $obj and ref $obj
263 0 0 950 defined $block and ref $block
368 35 10 158 $ret and $block->dump
1468 0 0 557 defined $obj and ref $obj
1470 45 0 1103 defined $line and ref $line
2010 858 0 113 $self->system && $self->user
3044 2 4 1 not $found and $ref
6 0 1 not $found and $ref and $obj == $ref
3067 7 0 2 not $found and $obj == $ref
3083 0 0 2 ref $old and ref $new

or 3 conditions

line l !l&&r !l&&!r condition
313 0 0 1 $crontab or $?
350 0 0 1 $output or $?
1965 3 40 26 @matches = $data =~ /^\s*(\#*)\s*(-?)(\@(?:reboot|midnight|(?:year|annual|month|week|dai|hour)ly))\s+(\S+)\s+(.+?)\s*$/ or @matches = $data =~ m[^\s*(\#*)\s*(-?)((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*|\w{3}(?:,\w{3})*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*|\w{3}(?:,\w{3})*))\s+(\S+)\s+(.+?)\s*$]
1985 25 174 242 @matches = $data =~ /^\s*(\#*)\s*(-?)(\@(?:reboot|midnight|(?:year|annual|month|week|dai|hour)ly))\s+(.+?)\s*$/ or @matches = $data =~ m[^\s*(\#*)\s*(-?)((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*|\w{3}(?:,\w{3})*))\s+((?:\*|(?:\d+|\*)(?:[-,\/]\d+)*(?:,(?:\d+|\*)(?:[-,\/]\d+)*)*|\w{3}(?:,\w{3})*))\s+(.+?)\s*$]
2872 37 191 1 $data =~ /^\s*$/ or $data =~ /^\s*\#/
3113 0 1311 0 ref $proto || $proto