Branch Coverage

blib/lib/App/Prove/Plugin/Distributed.pm
Criterion Covered Total %
branch 5 108 4.6


line true false branch
98 0 0 unless GetOptions 'manager=s', \$$app{'manager'}, 'distributed-type=s', \$$app{'distributed_type'}, 'start-up=s', \$$app{'start_up'}, 'tear-down=s', \$$app{'tear_down'}, 'error-log=s', \$$app{'error_log'}, 'detach', \$$app{'detach'}, 'sync-type=s', \$$app{'sync_type'}, 'source-dir=s', \$$app{'source_dir'}, 'destination-dir=s', \$$app{'destination_dir'}
111 0 0 unless ($$app{'manager'})
112 0 0 $$app{'distributed_type'} ? :
121 0 0 unless ($@)
122 0 0 unless ($source_handler_class->load_options($app, \@ARGV))
130 0 0 $type ? :
131 0 0 if ($$app{'argv'}[0] and $$app{'argv'}[0] =~ /$option_name=number_of_workers=(\d+)/) { }
134 0 0 if ($$app{'jobs'}) { }
152 0 0 if ($$app{$_})
157 0 0 if ($$app{'sync_type'})
164 0 0 if ($self->lib)
167 0 0 if ($self->blib)
170 0 0 if (@{$self->includes;})
178 0 0 @libs ? :
183 0 0 unless ($$app{'manager'})
186 0 0 $$app{'distributed_type'} ? :
201 0 0 if ($$app{'includes'})
208 0 0 unless ($found{$include}++)
217 0 0 unless $found{$_}
222 0 0 if ($$app{'sync_type'})
224 0 0 unless ($class->can($method))
230 0 0 unless ($class->$method($app))
236 0 0 if ($$app{'start_up'})
237 0 0 unless ($class->_do($$app{'start_up'}))
245 0 0 $$app{'error_log'} ? :
0 0 $$app{'detach'} ? :
256 0 0 if ($$app{'tear_down'})
257 0 0 unless ($class->_do($$app{'tear_down'}))
284 1 11 if ($var_name =~ /_stem$/ and $App::Prove::Plugin::Distributed::Config{$var_name}) { }
290 4 7 if $App::Prove::Plugin::Distributed::Config{$var_name}
296 1 0 if ${^TAINT} == 0
315 0 0 if grep {$_ =~ /^$abs_inc$/;} @compiled_inc
316 0 0 if grep {$_ =~ /^$abs_inc$/;} @perl5lib
346 0 0 unless ($socket)
356 0 0 if ($pid) { }
0 0 elsif ($pid == 0) { }
366 0 0 if ($detach)
369 0 0 $$app{'test_args'} ? :
378 0 0 if ($vote > 0.25)
384 0 0 unless exec @command
392 0 0 unless ($class->_do($job_info, $$app{'test_args'}))
393 0 0 $socket->sockhost eq '0.0.0.0' ? :
405 0 0 if ($error_log)
408 0 0 unless (flock $fh, 6)
411 0 0 unless (flock $fh, 2)
456 0 0 $args ? :
460 0 0 if ($EVAL_ERROR) { }
0 0 elsif ($@) { }
462 0 0 unless ($EVAL_ERROR =~ /^notr3a11yeXit/)
485 0 0 if ($Test::Builder::Test and $$Test::Builder::Test{'Original_Pid'} != $$)
494 0 0 if ($Test::Builder::Test and $original_pid)
515 0 0 unless ($dest)
532 0 0 $user ? :
0 0 unless ($rsync->exec({'src', ($user ? "$user\@" : '') . "${host}:$source", 'dest', "$dest"}))