Branch Coverage

blib/lib/IO/Async/Notifier.pm
Criterion Covered Total %
branch 53 68 77.9


line true false branch
255 672 2852 if exists $params{$_}
258 2 1760 if keys %params
293 566 1388 if not $loop || $self->loop or $loop and $self->loop and $loop == $self->loop
296 1169 1388 if $self->loop
301 1388 1169 if $self->loop
356 1 57 if $f->is_failed
415 2428 664 unless $self->{'IO_Async_Notifier__children'}
436 1 648 if defined $child->{'IO_Async_Notifier__parent'}
438 0 648 if defined $child->loop
440 626 22 if (defined(my $loop = $self->loop))
470 46 360 unless $childrenref->[$i] == $child
480 272 88 if (defined(my $loop = $self->loop))
499 307 497 if (my $parent = $self->parent) { }
476 21 elsif (my $loop = $self->loop) { }
653 130 2075 unless (ref $code)
658 1 129 unless $self->can($code)
665 2148 114 ref $code ? :
713 14 171 unless (ref $code)
716 0 14 unless $self->can($code)
723 31 10 ref $code ? :
776 0 740 unless my $code = $self->can_event($event_name)
787 740 0 !$IO::Async::Debug::DEBUG ? :
804 1 1 unless my $code = $self->can_event($event_name)
815 1 0 !$IO::Async::Debug::DEBUG ? :
834 0 1388 unless my $code = $self->can_event($event_name)
837 0 1388 if $IO::Async::Debug::DEBUG
858 1156 73 unless my $code = $self->can_event($event_name)
861 0 73 if $IO::Async::Debug::DEBUG
902 1092 0 unless $IO::Async::Debug::DEBUG
912 0 0 if defined $name and length $name
931 0 0 if ($IO::Async::Debug::DEBUG > 1 or $class eq $caller)
936 0 0 $class eq $caller ? :
969 3 2 if (my $code = $self->{'IO_Async_Notifier__on_error'} || $self->can('on_error'))
973 1 1 if (my $parent = $self->parent)