Branch Coverage

blib/lib/App/RunCron.pm
Criterion Covered Total %
branch 32 54 59.2


line true false branch
25 2 6 if ($logfile) { }
26 0 2 unless open $logfh, '>>', $logfile
34 0 8 if $self->logpos == -1
35 0 8 unless seek $logfh, $self->logpos, 0
42 1 0 if (not $self->_finished) { }
58 0 8 unless @{$self->command;}
61 0 8 unless pipe my $logrh, my $logwh
66 0 8 if (not my $pid = fork) { }
67 0 0 if (defined $pid) { }
71 0 0 unless open STDERR, '>&', $logwh
72 0 0 unless open STDOUT, '>&', $logwh
80 0 0 unless defined $pid
85 0 8 if ($self->print)
91 0 8 if $self->print
100 7 1 if ($self->is_success) { }
111 8 1 if not $exit_code or $exit_code < 0
119 7 1 if not $exit_code or $exit_code < 0
130 0 8 if ($exit_code == -1) { }
0 8 elsif ($self->child_signal) { }
146 0 5 unless open my $fh, '<', $self->logfile
147 0 5 unless seek $fh, $self->logpos, 0
174 1 8 if (ref $reporter and ref $reporter eq 'CODE') { }
187 1 7 if (my $err = $@)
196 4 7 if (ref $reporter and ref $reporter eq 'ARRAY') { }
202 3 4 if ($stuffs[0] and ref $stuffs[0])
217 14 0 unless ($class =~ s/^\+// or $class =~ /^$prefix/)
231 3 21 $self->timestamp ? :