Branch Coverage

lib/Rex/Helper/Run.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
42 0 0 if (exists $option{'with'})
46 0 0 if (exists $option{'args'})
58 0 910 if (ref $_[0] eq "CODE")
61 823 87 if (scalar @_ > 0)
68 0 910 if ($option->{'no_stderr'})
72 0 910 if ($option->{'stderr_to_stdout'})
76 0 910 if (ref $option->{'valid_retval'} ne "ARRAY")
82 0 0 if (exists $option->{'nohup'} and $option->{'nohup'})
90 910 0 unless ("Rex::Config"->get_no_path_cleanup)
98 564 346 if $out
99 0 910 if $err
106 344 566 if (scalar grep({$_ == $ret_val;} @{$$option{"valid_retval"};}) == 0)
107 0 344 unless ($option->{'fail_ok'})
114 0 0 if ($is_no_hup)
124 0 910 if ($code)
128 679 231 if (wantarray)
132 0 231 if ($is_no_hup)