Branch Coverage

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


line true false branch
54 0 0 if ref(my $class = shift())
57 0 0 if $args{'canondev'}
77 0 0 if (my $fstab = 'IO::File'->new($fstabPath, 'r')) { }
81 0 0 if /^\s*#/ or /^\s*$/
87 0 0 if $$self{'canondev'} and -l $vals[$$pridx[0]]
90 0 0 unless defined $$self{$vals[$$pridx[1]]}{'mounted'}
93 0 0 if (defined $$pridx[2]) { }
96 0 0 if defined $$special_fs{$vfs_type}
101 0 0 unless defined $$self{$vals[$$pridx[1]]}{'special'}
107 0 0 defined $vals[$i] ? :
127 9 0 if ($mtab = 'IO::File'->new($mnttabPath, 'r') and flock $mtab, 5) { }
131 0 162 if /^\s*#/ or /^\s*$/
137 0 162 if $$self{'canondev'} and -l $vals[$$pridx[0]]
138 0 162 if exists $$self{$vals[$$pridx[1]]}{'unmounted'}
144 162 0 if (defined $$pridx[2]) { }
147 99 63 if defined $$special_fs{$vfs_type}
152 0 0 unless defined $$self{$vals[$$pridx[1]]}{'special'}
158 972 0 defined $vals[$i] ? :
177 0 0 if (my(@vals) = $line =~ /$mount_rx/)
179 0 0 if $$self{'canondev'} and -l $vals[$$pridx[0]]
183 0 0 if exists $$self{$vals[$$pridx[1]]}{'unmounted'}
186 0 0 if (defined $$pridx[2]) { }
0 0 elsif (not defined $$self{$vals[$$pridx[1]]}{'special'}) { }
189 0 0 if defined $$special{$vfs_type}
199 0 0 defined $vals[$i] ? :
213 0 0 if (my($dev) = $line =~ /$swap_rx/)
215 0 0 if $$self{'canondev'} and -l $dev