Branch Coverage

blib/lib/File/System/Table.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
108 0 3 unless $_[0] eq '/'
131 3 5 if ($path eq '/') { }
132 0 3 if (defined $$self{'mounts'}) { }
140 0 5 unless defined $dir
143 0 5 unless $dir->is_container
147 0 5 if @inner
150 3 2 if $dir->has_children
169 0 4 if $path eq '/'
172 0 4 unless defined $$self{'mounts'}{$path}
176 0 4 if @inner
201 0 8 if (UNIVERSAL::isa($fs, 'File::System::Object')) { }
8 0 elsif (ref $fs eq 'ARRAY') { }
222 26303 1031 unless $rel_path =~ m[^/]
250 11 26376 unless defined $cwd_fs
293 100761 8113 if (/^path$/)
296 5495 2618 if (/^dirname$/)
299 1826 792 if (/^basename$/)
312 0 382 if grep {$$self{'cwd'} eq $_;} keys %{$$self{'mounts'};}
327 0 382 unless UNIVERSAL::isa($path, 'File::System::Table')
341 0 191 unless UNIVERSAL::isa($path, 'File::System::Table')
365 0 242 unless $self->is_container
368 0 242 if $name =~ m[/]
391 0 455 unless defined $obj