Branch Coverage

blib/lib/Ryu/Async.pm
Criterion Covered Total %
branch 20 50 40.0


line true false branch
126 1 1 if (my $class = &blessed($_[0]))
127 1 0 if ($class->isa('IO::Async::Stream')) { }
135 1 0 if (my $ref = ref $_[0])
136 1 0 if ($ref eq 'ARRAY') { }
142 3 0 if @pending and $src
143 2 1 if (@pending) { }
158 0 0 if (my $dir = $args{'directory'})
159 0 0 unless opendir my $handle, $dir
162 0 0 if (defined(my $item = readdir $handle)) { }
163 0 0 unless $item eq '.' or $item eq '..'
167 0 0 unless closedir $handle
204 2 1 $eof ? :
207 1 2 if $eof and not $src->completed->is_ready
210 1 0 unless ($stream->parent)
213 1 0 if $stream->parent
240 0 0 unless ($stream->parent)
244 0 0 if $stream->parent
332 0 1 unless $timer
333 0 1 if $timer->is_running
348 0 0 if (ref $code eq 'ARRAY') { }
0 0 elsif (ref $code eq 'CODE') { }
415 1 0 unless ref $uri
443 0 1 if $host eq '*'
491 1 0 unless ref $uri
544 1 0 unless ref $uri