Condition Coverage

blib/lib/Test/File.pm
Criterion Covered Total %
condition 101 191 52.8


and 3 conditions

line !l l&&!r l&&r condition
136 0 0 0 $major == 10 and $minor > 0 || $build > 15063
421 1 0 2 defined $expected and int $expected == $expected
477 1 0 3 defined $expected and int $expected == $expected
534 1 0 8 defined $$ref and int $$ref == $$ref
544 1 0 3 $min <= $got and $got <= $max
920 0 1 4 -e $filename && ((stat $filename)[2] & 4095) == $mode
954 0 4 1 -e $filename && ((stat $filename)[2] & 4095) == $mode
991 0 2 2 $present && ($gotmode & $mode) == $mode
1029 0 1 2 $present && ($gotmode & $mode) == 0
1243 0 0 0 defined $link_abs and defined $to_abs
0 0 0 defined $link_abs and defined $to_abs and $link_abs eq $to_abs
1444 4 0 0 defined $err and $err eq "skip"
1489 4 0 0 defined $err and $err eq "skip"
1523 5 0 0 defined $err and $err eq "skip"
1570 4 0 0 defined $err and $err eq "skip"
1611 6 0 2 defined $from_uid and not defined $from_nam
0 2 4 not defined $from_uid and defined $from_nam
1655 6 0 3 defined $from_gid and not defined $from_nam
0 1 5 not defined $from_gid and defined $from_nam

or 2 conditions

line l !l condition
1248 0 0 $link ||= "undefined"
1249 0 0 $link_abs ||= "undefined"
1250 0 0 $to_abs ||= "undefined"
1685 3 1 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
106 5 0 33 $^O =~ /Win/ || $^O eq 'msys'
136 0 0 0 $minor > 0 || $build > 15063
0 0 0 $major > 10 or $major == 10 and $minor > 0 || $build > 15063
192 1 10 0 shift() || "$filename exists"
213 1 4 0 shift() || "$filename does not exist"
238 1 3 0 shift() || "$filename is empty"
265 1 6 0 shift() || "$filename is not empty"
293 1 3 0 shift() || "$filename has right size"
325 1 3 0 shift() || "$filename is under $max bytes"
359 1 3 0 shift() || "$filename is over $min bytes"
687 12 28 0 $name || "$filename $verb $_"
691 0 14 0 $name || "$filename $verb $patterns"
736 1 1 0 shift() || "$filename is readable"
758 0 0 0 shift() || "$filename is not readable"
791 1 2 0 shift() || "$filename is writable"
824 0 0 0 shift() || "$filename is not writable"
854 1 2 0 shift() || "$filename is executable"
884 1 2 0 shift() || "$filename is not executable"
918 1 4 0 shift() || sprintf('%s mode is %04o', $filename, $mode)
952 1 4 0 shift() || sprintf('%s mode is not %04o', $filename, $mode)
987 1 3 0 shift() || sprintf('%s mode has all bits of %04o', $filename, $mode)
1025 1 2 0 shift() || sprintf('%s mode has no bits of %04o', $filename, $mode)
1057 3 3 0 shift() || "$file is a symlink"
1084 0 0 0 shift() || "$file is not a symlink"
1118 4 0 1 shift() || readlink $file
1119 1 4 0 shift() || "$file is a symlink"
1163 3 1 0 shift() || "$file is a symlink"
1196 2 1 0 shift() || "symlink $file points to $dest"
1272 1 3 0 shift() || "$filename is a directory"
1302 1 3 0 shift() || "directory $dirname contains file $filename"
1333 2 1 0 shift() || "$file has a link count of [$count]"
1358 2 1 0 shift() || "$file has a link count of [$count]"
1384 2 1 0 shift() || "$file has a link count of [$count]"
1441 2 2 0 shift() || "$filename belongs to $owner"
1486 2 2 0 shift() || "$filename doesn't belong to $owner"
1520 4 1 0 shift() || "$filename belongs to group $group"
1567 3 1 0 shift() || "$filename does not belong to group $group"
1611 0 0 2 defined $from_uid || defined $from_nam
1655 0 0 1 defined $from_gid || defined $from_nam
1686 2 2 0 shift() || "$filename mtime within $within_secs seconds of current time"
1710 2 1 0 shift() || "$filename mtime is greater than unix timestamp $time"
1732 2 1 0 shift() || "$filename mtime less than unix timestamp $time"