Branch Coverage

blib/lib/Filesys/POSIX/Userland/Tar.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
80 7 4 $modulo ? :
87 4882 12 $remaining >= $BUF_MAX ? :
89 1 4893 if (($readlen = $fh->read($buf, $wanted)) <= 0)
93 0 4893 if (($writelen = $handle->write($buf, $readlen)) < $readlen)
101 1 10 if ($remaining) { }
1 1 elsif (not $fh->eof) { }
130 0 78 if ($$header{'truncated'})
132 0 0 if ($$opts{'gnu_extensions'}) { }
0 0 elsif ($$opts{'posix_extensions'}) { }
152 0 78 unless ($handle->write($blocks, $header_len) == $header_len)
156 13 65 if ($inode->file and $$header{'size'} > 0)
165 2 76 if ($!)
166 1 1 if (not $$opts{'ignore_missing'} or $! != &Errno::ENOENT)
169 1 0 if ref $$opts{'ignore_missing'} eq 'CODE'
212 1 11 ref $_[0] eq 'HASH' ? :
220 1 78 if $inode->sock