Branch Coverage

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


line true false branch
33 81 157 if ($inode->{'mode'} & $Filesys::POSIX::Userland::Tar::Header::S_IFMT) == $TYPES{$_}
44 58 23 if $inode->dir
47 17 64 $inode->file ? :
52 0 81 if ($inode->char or $inode->block)
66 6 75 $inode->link ? :
140 1 5 if $curlen > length $len
150 0 0 if $linklen
189 78 2 if ($self->{'linktype'} =~ /^[0-9]$/) { }
202 0 80 if ($self->{'major'} or $self->{'minor'})
221 61 27 if $inode->dir
234 3 397 if ($got == 0 and $len > 100)
235 2 1 $inode->dir ? :
238 2 1 if $inode->dir
244 312 88 if $got
247 294 106 if ($got <= 100) { }
106 0 elsif ($got > 100) { }
258 0 88 if (length $prefix > 155)
280 163 479 if (length $string == $len) { }
303 78 480 if ($len == $digits) { }
332 0 0 unless $calculated_checksum == $checksum