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($_)
711 0 0 if (s/^-//u) { }
720 0 0 if $veto{$impl}
721 0 0 if "Future::IO"->try_load_impl($impl)
726 0 0 ref $_ ? :
727 0 0 if $veto{$impl}
728 0 0 unless eval { do { $package->VERSION(0) } }
730 0 0 if "Future::IO"->try_load_impl($impl)
734 0 0 unless $IMPLS_FOR_OS{$^O}
735 0 0 if $veto{$impl}
736 0 0 if "Future::IO"->try_load_impl($impl)
741 0 0 if $veto{$impl}
742 0 0 if "Future::IO"->try_load_impl($impl)
851 0 159 unless @pollers or @alarms
860 135 26 if $p->events & 1
861 26 135 if $p->events & 4
862 2 159 if $p->events & 2
873 13 146 if ($do_select)
875 7 6 if @alarms
894 148 13 unless $do_select
897 131 30 if vec $rvec, $fileno, 1
898 29 132 if vec $wvec, $fileno, 1
899 0 161 if vec $evec, $fileno, 1
902 155 6 if ($revents) { }
912 4 144 unless $do_select or $was_blocking