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 909 if (ref $_[0] eq "CODE")
61 822 87 if (scalar @_ > 0)
68 0 909 if ($option->{'no_stderr'})
72 0 909 if ($option->{'stderr_to_stdout'})
76 0 909 if (ref $option->{'valid_retval'} ne "ARRAY")
82 0 0 if (exists $option->{'nohup'} and $option->{'nohup'})
90 909 0 unless ("Rex::Config"->get_no_path_cleanup)
98 563 346 if $out
99 0 909 if $err
106 344 565 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 909 if ($code)
128 123 786 if (wantarray)
132 0 786 if ($is_no_hup)