Branch Coverage

blib/lib/IO/Pty/Easy.pm
Criterion Covered Total %
branch 45 66 68.1


line true false branch
25 0 16 if exists $args{'handle_pty_size'}
27 16 0 unless POSIX::isatty(*STDIN)
29 0 16 if exists $args{'def_max_read_chars'}
32 0 16 if exists $args{'raw'}
51 0 20 if $self->is_active
56 0 20 unless (pipe $readp, $writep)
66 8 12 unless ($self->pid)
70 0 8 if $self->handle_pty_size
71 8 0 if ${*{$self;};}{'io_pty_easy_raw'}
75 0 8 unless open STDIN, '<&', $slave->fileno
77 0 8 unless open STDOUT, '>&', $slave->fileno
79 0 8 unless open STDERR, '>&', $slave->fileno
95 0 12 unless (defined $read_bytes)
104 1 11 if ($read_bytes > 0)
110 0 11 if ($self->handle_pty_size)
113 0 0 unless $weakself
115 0 0 if $weakself->is_active
131 4 3 if ($nfound > 0)
133 0 4 if defined $nchars and $nchars == 0
135 0 7 if (length ${*{$self;};}{'io_pty_easy_final_output'} > 0)
152 6 2 if ($nfound > 0)
162 48 39 unless defined $self->pid
164 30 9 if (defined(my $fd = fileno $self))
170 10 20 if ($nfound > 0)
178 39 0 if ($active)
180 12 27 if $pid == $self->pid
182 12 27 unless ($active)
184 0 12 if ${*{$self;};}{'io_pty_easy_did_handle_pty_size'}
195 23 2 unless defined $sig
198 13 12 if $self->is_active
199 23 2 unless $non_blocking
215 16 19 if @_
222 16 17 if @_