Branch Coverage

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


line true false branch
255 670 2858 if exists $params{$_}
258 2 1762 if keys %params
293 566 1386 if not $loop || $self->loop or $loop and $self->loop and $loop == $self->loop
296 1169 1386 if $self->loop
301 1386 1169 if $self->loop
356 1 55 if $f->is_failed
415 2426 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 43 376 unless $childrenref->[$i] == $child
480 309 67 if (defined(my $loop = $self->loop))
499 323 481 if (my $parent = $self->parent) { }
476 5 elsif (my $loop = $self->loop) { }
653 130 2061 unless (ref $code)
658 1 129 unless $self->can($code)
665 2154 112 ref $code ? :
713 14 171 unless (ref $code)
716 0 14 unless $self->can($code)
723 31 10 ref $code ? :
776 0 738 unless my $code = $self->can_event($event_name)
787 738 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 1180 75 unless my $code = $self->can_event($event_name)
861 0 75 if $IO::Async::Debug::DEBUG
902 1088 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)