Branch Coverage

blib/lib/Event/ExecFlow/Job/Command.pm
Criterion Covered Total %
branch 21 40 52.5


line true false branch
94 0 10 if (ref $command eq 'CODE')
100 0 10 if ($self->get_configure_callback)
105 0 10 if ($self->get_node)
111 0 10 $command =~ /execflow/ ? :
113 10 0 unless $command =~ /EXECFLOW_OK/
116 0 10 if $Event::ExecFlow::DEBUG
123 0 10 unless my $pid = open(my $fh, "( $command ) 2>&1 |")
146 0 10 unless ($self->get_error_message or $self->get_got_exec_ok)
164 10 36 unless (sysread $fh, $buffer, 4096)
172 10 26 if (defined $pid)
178 10 26 if ($buffer =~ s/EXECFLOW_OK\n//)
183 0 36 if ($self->get_fetch_output) { }
191 0 36 if (ref $progress_parser eq 'CODE') { }
36 0 elsif (ref $progress_parser eq 'Regexp') { }
195 20 16 if ($buffer =~ /$progress_parser/)
200 26 10 if $self->progress_has_changed
212 0 0 unless @{$pids;}
225 0 0 if ($self->get_paused) { }
233 0 0 if @{$pids;}
248 0 0 if ref $$data_href{'command'} eq 'CODE'