Branch Coverage

blib/lib/Tie/Mounted.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
45 0 0 unless (-e $$path and -x _)
47 0 0 unless defined $which
60 0 0 unless my $fh = "IO::File"->new("<$FSTAB")
64 0 0 if (not defined $node && length $node) { }
0 0 elsif (not -e $node) { }
0 0 elsif (not -d $node) { }
0 0 elsif ($fstabs =~ /^\#.*?\s$node\s/m) { }
0 0 elsif (not $fstabs =~ /\s$node\s/) { }
84 0 0 defined $_[0] ? :
88 0 0 $NO_FILES ? :
100 0 0 unless (_is_mounted($node))
101 0 0 unless system("$MOUNT_BIN @_ $node") == 0
109 0 0 unless open my $pipe, "$MOUNT_BIN |"
110 0 0 scalar grep(/\s$node\s/, readline $pipe) ? :
111 0 0 unless close $pipe
120 0 0 unless opendir my $dh, $node
122 0 0 unless closedir $dh
131 0 0 if (_is_mounted($node))
132 0 0 unless system("$UMOUNT_BIN $node") == 0