Branch Coverage

blib/lib/Sys/Filesystem/Unix.pm
Criterion Covered Total %
branch 8 54 14.8


line true false branch
55 0 0 if ref(my $class = shift())
58 0 0 if $args{'canondev'}
79 0 0 if (my $fstab = 'IO::File'->new($fstabPath, 'r'))
83 0 0 if /^\s*#/ or /^\s*$/
89 0 0 if $self->{'canondev'} and -l $vals[$pridx->[0]]
93 0 0 unless defined $$self{$vals[$pridx->[1]]}{'mounted'}
95 0 0 if (defined $pridx->[2]) { }
99 0 0 if defined $special_fs->{$vfs_type}
104 0 0 unless defined $$self{$vals[$pridx->[1]]}{'special'}
109 0 0 defined $vals[$i] ? :
129 9 0 if ($mtab = 'IO::File'->new($mnttabPath, 'r') and flock $mtab, 5)
133 0 333 if /^\s*#/ or /^\s*$/
139 0 333 if $self->{'canondev'} and -l $vals[$pridx->[0]]
141 0 333 if exists $$self{$vals[$pridx->[1]]}{'unmounted'}
146 333 0 if (defined $pridx->[2]) { }
150 171 162 if defined $special_fs->{$vfs_type}
155 0 0 unless defined $$self{$vals[$pridx->[1]]}{'special'}
160 1998 0 defined $vals[$i] ? :
180 0 0 if (my(@vals) = $line =~ /$mount_rx/)
182 0 0 if $self->{'canondev'} and -l $vals[$pridx->[0]]
187 0 0 if exists $$self{$vals[$pridx->[1]]}{'unmounted'}
189 0 0 if (defined $pridx->[2]) { }
0 0 elsif (not defined $$self{$vals[$pridx->[1]]}{'special'}) { }
193 0 0 if defined $special->{$vfs_type}
202 0 0 defined $vals[$i] ? :
216 0 0 if (my($dev) = $line =~ /$swap_rx/)
218 0 0 if $self->{'canondev'} and -l $dev