Branch Coverage

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


line true false branch
98 1 44 unless $rootfs
133 2 2 if defined $umask
143 31 452 if $hier->full eq '/'
151 232 697 unless (length $item)
162 463 234 unless ($dir->{'dev'}{'flags'}{'noatime'})
171 103 593 if ($item eq '.') { }
7 586 elsif ($item eq '..') { }
179 6 1 $vnode->{'parent'} ? :
187 21 675 unless $inode
189 16 659 if ($inode->link) { }
191 5 11 if $opts{'resolve_symlinks'} or $hier->count
260 1 7 unless $inode->dir
280 1 1 unless $inode->dir
372 1 58 $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 10 unless $inode->{'dev'} eq $new_parent->{'dev'}
591 5 5 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)