Branch Coverage

blib/lib/IO/All/Dir.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
22 230 2 unless $had_prev
23 12 220 if (@_ and @_ > 1 or @_ and $had_prev) { }
219 1 elsif (@_) { }
24 2 10 $self->pathname ? :
39 0 0 if @_
46 798 137 if $self->is_open
53 0 137 if $self->pathname and $self->_assert
57 1 136 unless $handle->open($self->pathname)
64 1 0 defined $self->pathname ? :
80 3 9 $self->_deep ? :
121 12 @_ ? :
85 95 216 if $depth != 1 and $io->is_dir
88 2 131 if $self->filter
90 95 38 unless $first and $self->_sort
135 0 1 unless opendir $dh, $self->pathname
137 0 2 unless $dir =~ /^\.{1,2}$/
144 0 1 defined $self->perms ? :
167 135 332 unless defined $name
169 16 316 if $self->is_absolute
176 0 467 if (wantarray)
186 135 602 unless (defined $name)
210 0 3 if $self->is_absolute
220 0 0 unless File::Copy::Recursive::dircopy($self->name, $new)
227 1 231 if $self->chdir_from