Branch Coverage

blib/lib/AnyEvent/Proc.pm
Criterion Covered Total %
branch 62 124 50.0


line true false branch
75 0 0 if (ref $waiter eq 'CODE') { }
0 0 elsif (ref $waiter eq 'AnyEvent::CondVar') { }
0 0 elsif (ref $waiter eq 'Coro::Channel') { }
106 0 69 unless defined $pid
108 22 47 unless ($pid)
127 0 68 unless defined POSIX::dup2($v, $k)
149 6 41 if $status
150 2 45 if $signal
151 0 47 if $coredump
169 64 5 unless delete $options{'extras'}
218 37 10 if ($options{'ttl'})
222 0 1 unless $self->alive
231 4 43 if ($options{'timeout'})
244 3 44 if ($options{'wtimeout'})
252 2 45 if ($options{'rtimeout'})
260 1 46 if ($options{'etimeout'})
268 16 31 if ($options{'errstr'})
274 26 21 if ($options{'outstr'})
291 0 47 if (keys %options)
329 3 6 if (wantarray) { }
333 0 6 if $err
380 15 43 if (exists $$self{'listeners'}{$name} and defined $$self{'listeners'}{$name})
393 1 2 unless defined $signal
406 0 0 ref $_[-1] eq 'CODE' ? :
412 0 0 unless $self->alive
417 0 0 if ($cb) { }
434 0 1 unless $$self{'alive'}
435 1 0 $self->fire(0) ? :
445 11 36 if ref $cb eq 'CODE'
451 11 36 if ($cb) { }
519 2 48 if (ref $what) { }
528 3 47 if (blessed $peer) { }
44 3 elsif (ref $peer eq 'SCALAR') { }
3 0 elsif (ref $peer eq 'GLOB') { }
0 0 elsif (ref $peer eq 'CODE') { }
529 0 3 if ($peer->isa('AnyEvent::Proc')) { }
2 1 elsif ($peer->isa('AnyEvent::Handle')) { }
0 1 elsif ($peer->isa('Coro::Channel')) { }
1 0 elsif ($peer->can('print')) { }
563 50 0 if ($sub) { }
586 11 4 if (blessed $peer) { }
1 3 elsif (ref $peer eq 'SCALAR') { }
3 0 elsif (ref $peer eq 'GLOB') { }
587 0 11 if ($peer->isa('AnyEvent::Proc')) { }
9 2 elsif ($peer->isa('AnyEvent::Handle')) { }
2 0 elsif ($peer->isa('IO::Handle')) { }
0 0 elsif ($peer->isa('Coro::Channel')) { }
615 0 0 if (my $class = load_class('Coro'))
619 0 0 unless $self->write($x)
704 0 0 unless $self->_readline($what, _sub_cv($cv))
710 0 0 unless ($channel)
711 0 0 if (my $class = load_class('Coro::Channel'))
716 0 0 unless $self->_readline($what, _sub_ch($channel))
732 0 0 unless ($channel)
733 0 0 if (my $class = load_class('Coro::Channel'))
742 0 0 unless $self->_geth($what)->on_read(sub { $self->_readline($what, _sub_ch($channel)); } )
762 0 0 unless ($channel)
763 0 0 if (my $class = load_class('Coro::Channel'))
768 0 0 unless $self->_readline($what, _sub_ch($channel))
774 0 0 unless ($channel)
775 0 0 if (my $class = load_class('Coro::Channel'))
784 0 0 unless $self->_geth($what)->on_read(sub { $self->_readline($what, _sub_ch($channel)); } )