Branch Coverage

blib/lib/Filesys/POSIX/Userland/Tar/Header.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
33 84 301 if ($$inode{'mode'} & $Filesys::POSIX::Userland::Tar::Header::S_IFMT) == $TYPES{$_}
44 59 25 if $inode->dir
47 19 65 $inode->file ? :
52 0 84 if ($inode->char or $inode->block)
57 6 78 $inode->link ? :
140 1 5 if $curlen > length $len
150 0 0 if $linklen
189 81 2 if ($$self{'linktype'} =~ /^[0-9]$/) { }
202 0 83 if ($$self{'major'} or $$self{'minor'})
221 62 29 if $inode->dir
234 3 405 if ($got == 0 and $len > 100)
235 2 1 $inode->dir ? :
238 2 1 if $inode->dir
244 317 91 if $got
247 302 106 if ($got <= 100) { }
106 0 elsif ($got > 100) { }
258 0 91 if (length $prefix > 155)
280 169 497 if (length $string == $len) { }
303 81 498 if ($len == $digits) { }
332 0 0 unless $calculated_checksum == $checksum