Branch Coverage

blib/lib/Directory/Scanner/Stream.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
42 15 41 unless &Scalar::Util::blessed($dir) and $dir->isa('Path::Tiny')
48 0 56 unless -d $dir
50 0 56 unless -r $dir
54 0 56 unless opendir $handle, $dir
78 0 56 unless closedir $_[0]{'_handle'}
86 0 157 if $self->{'_is_done'}
89 0 157 if $self->{'_is_closed'}
97 213 56 if (my $name = readdir $self->{'_handle'}) { }
100 0 213 unless defined $name
103 112 101 if $name eq '.' or $name eq '..'
108 0 101 if (not -r $next) { }