Branch Coverage

blib/lib/IO/Mux/Handle.pm
Criterion Covered Total %
branch 58 64 90.6


line true false branch
84 1 18 if ($this->_get_mux->_buffer_exists($id))
140 9 0 if (exists $!{'EIO'}) { }
168 3 25 if ($$this{'closed'})
184 1 14 if ($$this{'closed'})
188 1 13 if $this->_get_eof
196 7 6 unless ($this->_get_buffer->get_length)
198 0 7 if (not defined $rc) { }
3 4 elsif (not $rc) { }
207 10 3 if ($probe)
213 0 10 unless (defined $rc)
219 4 9 if ($this->_get_buffer->get_length < $len)
223 10 3 if ($len > 0)
237 1 16 if ($$this{'closed'})
241 1 2 wantarray ? :
3 13 if $this->_get_eof
249 1 15 if (not defined $rc) { }
3 12 elsif (not $rc) { }
259 11 4 if ($idx != -1) { }
265 1 3 if ($len)
270 12 3 if (defined $buf) { }
272 10 2 unless wantarray
279 1 12 wantarray ? :
287 1 34 if ($this->_get_buffer->is_closed)
297 1 33 if ($@) { }
0 33 elsif (not defined $rc) { }
10 23 elsif ($rc == -1) { }
5 18 elsif (not $rc) { }
320 1 21 if $$this{'closed'}
329 18 25 unless ($$this{'closed'})
336 0 0 unless $_[0] =~ /closed filehandle/i
364 1 1 if ($$this{'closed'})
383 1 1 if ($$this{'closed'})