Branch Coverage

blib/lib/Future/IO.pm
Criterion Covered Total %
branch 35 74 47.3


line true false branch
164 1 0 if ($IMPL->can('alarm')) { }
290 0 2 if (my $code = $IMPL->can("sysread_exactly"))
305 1 6 unless defined $more
309 1 5 if length $$bufref >= $length
345 8 8 unless defined $more
515 0 3 if (my $code = $IMPL->can("syswrite_exactly"))
532 3 2 unless length $$bufref
562 0 1 if defined $IMPL
563 0 1 if @pollers or @alarms
574 0 0 unless $name =~ /::/u
577 0 0 unless eval { do { require $module } }
578 0 0 unless $name->can("poll")
617 0 0 if "Future::IO"->try_load_impl($_)
709 0 0 if (s/^-//u) { }
718 0 0 if $veto{$impl}
719 0 0 if "Future::IO"->try_load_impl($impl)
724 0 0 ref $_ ? :
725 0 0 if $veto{$impl}
726 0 0 unless eval { do { $package->VERSION(0) } }
728 0 0 if "Future::IO"->try_load_impl($impl)
732 0 0 unless $IMPLS_FOR_OS{$^O}
733 0 0 if $veto{$impl}
734 0 0 if "Future::IO"->try_load_impl($impl)
739 0 0 if $veto{$impl}
740 0 0 if "Future::IO"->try_load_impl($impl)
849 0 47 unless @pollers or @alarms
858 27 22 if $p->events & 1
859 22 27 if $p->events & 4
860 2 47 if $p->events & 2
871 13 34 if ($do_select)
873 7 6 if @alarms
888 144 13 unless $do_select
891 129 28 if vec $rvec, $fileno, 1
892 27 130 if vec $wvec, $fileno, 1
893 0 157 if vec $evec, $fileno, 1
896 6 151 unless $revents
901 4 140 unless $do_select or $was_blocking