Branch Coverage

lib/Badger/Filesystem/Virtual.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
52 3 3 unless ref $root eq "ARRAY"
62 0 6 defined $config->{'max_roots'} ? :
69 0 6 if $Badger::Filesystem::Virtual::DEBUG
77 68 8 if (my $roots = $self->{'roots'})
79 60 8 wantarray ? :
104 8 25 if ($type eq 'CODE') { }
3 22 elsif ($type eq 'ARRAY') { }
22 0 elsif (&blessed($dir)) { }
111 8 0 ref $paths eq 'ARRAY' ? :
128 22 0 if ($code = $dir->can('path') || $dir->can('paths') || $dir->can('roots'))
136 0 22 ref $paths eq 'ARRAY' ? :
146 0 8 if @paths
150 5 3 unless $self->{'dynamic'}
156 7 1 wantarray ? :
165 0 0 wantarray ? :
185 58 38 if -e $full
215 39 18 unless $seen{$item}++
220 4 0 unless $all or ref $self and $self->{'all_entries'}
222 4 0 wantarray ? :