Branch Coverage

blib/lib/Filesys/POSIX.pm
Criterion Covered Total %
branch 64 64 100.0


line true false branch
98 1 41 unless $rootfs
133 2 2 if defined $umask
143 31 432 if $hier->full eq '/'
151 227 652 unless ($item)
162 428 224 unless ($$dir{'dev'}{'flags'}{'noatime'})
171 97 554 if ($item eq '.') { }
7 547 elsif ($item eq '..') { }
176 6 1 $$vnode{'parent'} ? :
187 18 633 unless $inode
189 13 620 if ($inode->link) { }
190 4 9 if $opts{'resolve_symlinks'} or $hier->count
260 1 7 unless $inode->dir
280 1 1 unless $inode->dir
372 1 56 $mode ? :
425 1 4 unless $$inode{'dev'} == $$parent{'dev'}
426 1 3 if $inode->dir
427 1 2 if $directory->exists($name)
468 1 1 unless $inode->link
508 1 3 unless $inode
509 1 2 if $inode->dir
589 1 11 unless $$inode{'dev'} eq $$new_parent{'dev'}
591 5 6 if (my $existing = $new_dir->get($new_name))
592 3 2 if ($inode->dir) { }
593 1 2 unless $existing->dir
594 1 1 unless $existing->empty
597 1 1 if $existing->dir
647 1 4 unless $inode
649 1 3 if $$self{'vfs'}->statfs($self->stat($path), 'exact', 1, 'silent', 1)
654 1 1 unless $inode->empty
693 1 28 unless $format
694 1 27 if $directory->exists($name)
698 24 3 if ($format == $Filesys::POSIX::S_IFCHR or $format == $Filesys::POSIX::S_IFBLK)