line |
true |
false |
branch |
24
|
0 |
64 |
if $command and $commandf |
25
|
2 |
62 |
if (not $command and $commandf) |
29
|
23 |
41 |
$command ? : |
53
|
0 |
64 |
if $self->{'env'} |
55
|
23 |
41 |
if (ref $command eq 'CODE') { } |
68
|
7 |
16 |
if ($self->{'redirect'}) { } |
74
|
23 |
0 |
if (length $stdout and my $sub = $self->{'stdout'}) |
79
|
16 |
0 |
if (not $self->{'redirect'} and length $stderr and my $sub = $self->{'stderr'}) |
85
|
19 |
4 |
if ($self->{'keep'}) |
96
|
21 |
2 |
unless ($self->{'timeout'}) |
112
|
0 |
2 |
if (not $err) { } |
|
2 |
0 |
elsif ($err eq "__TIMEOUT__\n") { } |
125
|
0 |
0 |
if (ref $command) { } |
132
|
0 |
0 |
$self->{'timeout'} ? : |
136
|
0 |
0 |
if ($INT) |
142
|
0 |
0 |
if ($res == -1) { } |
|
0 |
0 |
elsif ($res > 0) { } |
149
|
0 |
0 |
if ($timeout and my $signal = $timeout->signal) |
165
|
31 |
10 |
unless ($self->{'redirect'}) |
171
|
0 |
41 |
unless defined $pid |
172
|
10 |
31 |
if ($pid == 0) |
175
|
2 |
8 |
if ($self->{'redirect'}) { } |
180
|
10 |
0 |
if ($Config::Config{'d_setpgrp'}) |
181
|
0 |
10 |
unless POSIX::setpgid(0, 0) |
184
|
7 |
3 |
if (ref $command) { } |
193
|
31 |
0 |
$Config::Config{'d_setpgrp'} ? : |
196
|
5 |
26 |
$self->{'timeout'} ? : |
200
|
0 |
746 |
if ($INT) |
204
|
6 |
740 |
if ($timeout and my $signal = $timeout->signal) |
208
|
62 |
45 |
$ready == $stdout_read ? : |
210
|
53 |
54 |
if ($len) { } |
213
|
4 |
49 |
unless my(@line) = $buffer->get |
214
|
6 |
43 |
unless my $sub = $self->{$type} |
217
|
0 |
54 |
unless defined $len |
224
|
9 |
53 |
unless my $sub = $self->{$type} |
225
|
5 |
48 |
unless my $buffer = $self->{'_buffer'}{$type} |
226
|
41 |
7 |
unless my(@line) = $buffer->get(1) |
236
|
31 |
0 |
$self->{'_buffer'}{'stdout'} ? : |
|
23 |
8 |
$self->{'_buffer'}{'stderr'} ? : |