Branch Coverage

lib/Rex/Interface/Exec/Local.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
38 0 10 if ref $env ne "HASH"
52 10 1141 if (exists $option->{'cwd'})
53 0 10 $Rex::Interface::Exec::Local::OSNAME eq 'MSWin32' ? :
57 0 1151 if (exists $option->{'path'})
61 10 1141 if (exists $option->{'env'})
65 0 1151 if (exists $option->{'format_cmd'})
71 1151 0 unless ($^O =~ /^MSWin/u)
72 920 231 if ($path)
76 920 231 if ($path)
80 9 1142 if ($self->{'env'})
84 0 1151 if ("Rex::Config"->get_source_global_profile)
95 576 575 if $out
96 2 1149 if ($err)
104 921 230 if (wantarray)
112 0 555 $^O =~ /^MSWin/iu ? :
123 2 1149 if (not $^O =~ /^MSWin/u and 'Rex::Config'->get_no_tty) { }
128 0 2 unless waitpid $pid, 0
131 0 1149 unless $pid = open(my $fh, "-|", "$cmd 2>&1")
136 0 5993 if ($self->execute_line_based_operation($_, $option))
138 0 1149 unless waitpid $pid, 0