Branch Coverage

blib/lib/Bot/BasicBot/Pluggable/Module/Crontab.pm
Criterion Covered Total %
branch 11 42 26.1


line true false branch
37 0 0 unless ($file)
0 0 unless ($file)
56 0 2 unless $cron->{'tab'}->match(time)
0 0 unless $cron->{'tab'}->match(time)
61 1 0 unless $cron->{'weekno'} eq '*' or $cron->{'modulus'} and $cron->{'result'} == $wkno % $cron->{'modulus'} or $cron->{'weekno'} =~ /^\d+$/ and $wkno == $cron->{'weekno'}
0 0 unless $cron->{'weekno'} eq '*' or $cron->{'modulus'} and $cron->{'result'} == $wkno % $cron->{'modulus'} or $cron->{'weekno'} =~ /^\d+$/ and $wkno == $cron->{'weekno'}
79 0 1 unless my $fn = $self->store->get('crontab', 'file')
0 0 unless my $fn = $self->store->get('crontab', 'file')
80 0 1 unless -r $fn
0 0 unless -r $fn
83 0 1 if $mod <= $load_time
0 0 if $mod <= $load_time
87 0 1 unless my $fh = 'IO::File'->new($fn, 'r')
0 0 unless my $fh = 'IO::File'->new($fn, 'r')
91 0 1 unless $line
0 0 unless $line
93 0 1 if $line =~ /^#/
0 0 if $line =~ /^#/
94 0 1 if $line =~ /^$/
100 0 1 if $@
103 0 1 if $fields[5] =~ m[^\d+/\d+]