Branch Coverage

blib/lib/App/RunCron.pm
Criterion Covered Total %
branch 37 64 57.8


line true false branch
21 0 52 if $self->child_pid
26 2 11 if ($logfile) { }
27 0 2 unless open $logfh, '>>', $logfile
35 0 13 if $self->logpos == -1
36 0 13 unless seek $logfh, $self->logpos, 0
43 1 0 if (not $self->_started) { }
59 0 13 unless @{$self->command;}
62 0 13 unless pipe my $logrh, my $logwh
68 0 13 if (not my $pid = fork) { }
69 0 0 if (defined $pid) { }
75 0 0 if ($self->announcer)
78 0 0 unless open STDERR, '>&', $logwh
79 0 0 unless open STDOUT, '>&', $logwh
87 0 0 unless defined $pid
92 0 13 if ($self->print)
98 0 13 if $self->print
107 12 1 if ($self->is_success) { }
118 15 1 if not $exit_code or $exit_code < 0
126 14 1 if not $exit_code or $exit_code < 0
137 0 13 if ($exit_code == -1) { }
0 13 elsif ($self->child_signal) { }
153 0 8 unless open my $fh, '<', $self->logfile
154 0 8 unless seek $fh, $self->logpos, 0
164 0 2 defined $self->tag ? :
206 1 13 if (ref $plugin and ref $plugin eq 'CODE')
215 1 14 if (my $err = $@)
234 1 12 if ($err)
242 7 10 if (ref $plugin and ref $plugin eq 'ARRAY') { }
248 6 3 if ($stuffs[0] and ref $stuffs[0] || $plugin_class eq 'Command')
263 20 0 unless ($class =~ s/^\+// or $class =~ /^$prefix/)
276 0 39 if $self->child_pid
279 3 36 $self->timestamp ? :