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))
469 62 358 unless $childrenref->[$i] == $child
479 263 95 if (defined(my $loop = $self->loop))
498 305 499 if (my $parent = $self->parent) { }
476 23 elsif (my $loop = $self->loop) { }
652 130 2075 unless (ref $code)
657 1 129 unless $self->can($code)
664 2152 114 ref $code ? :
712 14 171 unless (ref $code)
715 0 14 unless $self->can($code)
722 31 10 ref $code ? :
775 0 740 unless my $code = $self->can_event($event_name)
786 740 0 !$IO::Async::Debug::DEBUG ? :
803 1 1 unless my $code = $self->can_event($event_name)
814 1 0 !$IO::Async::Debug::DEBUG ? :
833 0 1388 unless my $code = $self->can_event($event_name)
836 0 1388 if $IO::Async::Debug::DEBUG
857 1156 73 unless my $code = $self->can_event($event_name)
860 0 73 if $IO::Async::Debug::DEBUG
901 1092 0 unless $IO::Async::Debug::DEBUG
911 0 0 if defined $name and length $name
930 0 0 if ($IO::Async::Debug::DEBUG > 1 or $class eq $caller)
935 0 0 $class eq $caller ? :
968 3 2 if (my $code = $self->{'IO_Async_Notifier__on_error'} || $self->can('on_error'))
972 1 1 if (my $parent = $self->parent)