Branch Coverage

blib/lib/Coro/Handle.pm
Criterion Covered Total %
branch 29 94 30.8


line true false branch
63 0 8 unless my $fh = shift()
68 0 8 ref $class ? :
134 0 0 if @_ > 1
146 0 0 unless CORE::connect tied(*${$_[0];})->[0], $_[1] or $! == 115 or $! == 11
151 0 0 @_ > 2 ? :
152 0 0 @_ > 2 ? :
185 0 0 wantarray ? :
0 0 if $peername = CORE::accept($fh, tied(*${$_[0];})->[0])
190 0 0 if $! != 11 and $! != 4 and $! != -1e+99
192 0 0 unless $_[0]->readable
207 0 0 if (@_ > 1)
209 0 0 if $self->[5]
210 0 0 if $self->[6]
268 0 0 unless $forward
325 0 0 @_ == 2 ? :
328 0 0 if ($r)
329 0 0 unless fcntl $self->[0], &Fcntl::F_SETFL, &Fcntl::O_NONBLOCK
434 0 1 if ($AnyEvent::MODEL eq 'AnyEvent::Impl::Event' and eval { do { require Coro::Event } }) { }
0 1 elsif ($AnyEvent::MODEL eq 'AnyEvent::Impl::EV' and eval { do { require Coro::EV } }) { }
438 0 0 if $_[0][5]
439 0 0 if $_[0][6]
456 0 4 defined $_[2] ? :
462 4 0 if (defined $r) { }
0 0 elsif ($! != 11 and $! != 4 and $! != -1e+99) { }
466 4 0 unless $len
470 0 0 unless &writable
482 0 0 if (length $_[0][3])
484 0 0 if ($l <= $len) { }
489 0 0 unless $len
499 0 0 if (defined $r) { }
0 0 elsif ($! != 11 and $! != 4 and $! != -1e+99) { }
503 0 0 unless $len and $r
507 0 0 if $_[0][8] or not &readable
514 28 0 @_ > 1 ? :
519 25 11 if (length $irs) { }
7 4 elsif (defined $irs) { }
520 4 21 $ofs < 0 ? :
522 17 8 if $pos >= 0
527 7 0 $ofs < 1 ? :
529 3 4 if ($pos >= 0)
539 0 16 if $len < $bufsize * 0.5
542 12 4 unless ($len)
543 8 4 if (defined $len) { }
0 4 elsif ($! != 11 and $! != 4 and $! != -1e+99 or not &readable) { }
545 4 4 unless length $_[0][3]
547 1 3 if not length $irs and defined $irs
552 0 0 length $_[0][3] ? :