blib/lib/Devel/REPL/Server/Select.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 0 | 26 | 0.0 |
line | true | false | branch |
---|---|---|---|
48 | 0 | 0 | if ($self->{'port'}) { } |
0 | 0 | elsif ($self->{'path'}) { } | |
60 | 0 | 0 | unless $self->{'socket'} |
80 | 0 | 0 | !$self->{'profile'} ? : |
0 | 0 | !$self->{'rcfile'} ? : | |
99 | 0 | 0 | if ($err and @$err) |
105 | 0 | 0 | if ($hnd == $self->{'socket'}) |
111 | 0 | 0 | if ($read == 0) |
117 | 0 | 0 | if ($hnd == $self->{'pty'}) |
121 | 0 | 0 | if $got_input |
125 | 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 } }) |
135 | 0 | 0 | unless defined $count |
137 | 0 | 0 | if not defined $written or $written != $count |