line |
true |
false |
branch |
22
|
0 |
5 |
if exists $args{'handle_pty_size'} |
23
|
5 |
0 |
unless POSIX::isatty(*STDIN) |
26
|
0 |
5 |
if exists $args{'def_max_read_chars'} |
29
|
0 |
5 |
if exists $args{'raw'} |
47
|
0 |
6 |
if $self->is_active |
52
|
0 |
6 |
unless (pipe $readp, $writep) |
62
|
3 |
3 |
unless ($self->pid) |
66
|
0 |
3 |
if $self->handle_pty_size |
67
|
3 |
0 |
if do {
*{$self;}
}->{'io_pty_easy_raw'} |
71
|
0 |
3 |
unless open STDIN, '<&', $slave->fileno |
73
|
0 |
3 |
unless open STDOUT, '>&', $slave->fileno |
75
|
0 |
3 |
unless open STDERR, '>&', $slave->fileno |
91
|
0 |
3 |
unless (defined $read_bytes) |
100
|
0 |
3 |
if ($read_bytes > 0) |
106
|
0 |
3 |
if ($self->handle_pty_size) |
109
|
0 |
0 |
unless $weakself |
111
|
0 |
0 |
if $weakself->is_active |
127
|
2 |
2 |
if ($nfound > 0) |
129
|
0 |
2 |
if defined $nchars and $nchars == 0 |
131
|
0 |
4 |
if (length do {
*{$self;}
}->{'io_pty_easy_final_output'} > 0) |
148
|
3 |
1 |
if ($nfound > 0) |
158
|
14 |
9 |
unless defined $self->pid |
160
|
9 |
0 |
if (defined(my $fd = fileno $self)) |
166
|
3 |
6 |
if ($nfound > 0) |
174
|
9 |
0 |
if ($active) |
176
|
3 |
6 |
if $pid == $self->pid |
178
|
3 |
6 |
unless ($active) |
180
|
0 |
3 |
if do {
*{$self;}
}->{'io_pty_easy_did_handle_pty_size'} |
191
|
7 |
0 |
unless defined $sig |
194
|
3 |
4 |
if $self->is_active |
195
|
7 |
0 |
unless $non_blocking |
211
|
5 |
6 |
if @_ |
218
|
5 |
7 |
if @_ |