Branch Coverage

blib/lib/Devel/REPL/Server/Select.pm
Criterion Covered Total %
branch 0 22 0.0


line true false branch
45 0 0 if ($self->{'port'}) { }
0 0 elsif ($self->{'path'}) { }
57 0 0 unless $self->{'socket'}
87 0 0 if ($err and @$err)
93 0 0 if ($hnd == $self->{'socket'})
99 0 0 if ($read == 0)
105 0 0 if ($hnd == $self->{'pty'})
109 0 0 if $got_input
113 0 0 unless (eval { do { while (1) { my($rd, undef, $err) = 'IO::Select'->select($self->{'fds'}, undef, $self->{'fds'}, 10); if ($err and @$err) { die 'One of the handles became invalid'; } ; my $got_input; foreach my $hnd (@$rd) { if ($hnd == $self->{'socket'}) { my $read = _from_to($self->{'socket'}, $self->{'pty'}, 1); if ($read == 0) { $self->{'pty'}->close_slave; $self->{'pty'}->close; } ; $got_input = 1; } ; if ($hnd == $self->{'pty'}) { _from_to($self->{'pty'}, $self->{'socket'}, 1000); } ; } ; last if $got_input; } ; 1 } })
123 0 0 unless defined $count
125 0 0 if not defined $written or $written != $count