Branch Coverage

blib/lib/File/Properties/Compressed.pm
Criterion Covered Total %
branch 17 40 42.5


line true false branch
47 2 0 if ($self->isreg and $self->iscompressed)
53 1 1 if (defined $fpcr and $cent = $fpcr->cretrieve($CacheTableName, {'FileDigest', $self->SUPER::digest})) { }
65 1 0 if (defined $fpcr)
82 2 1 if @_
83 3 0 defined $$self{'cmtp'} ? :
93 2 1 if @_
94 3 0 defined $$self{'cdgs'} ? :
115 1 0 unless (defined $$self{'cfhn'})
119 1 0 $self->iscompressed ? :
122 0 1 unless defined $$self{'cfhn'} and $$self{'cfhn'}->opened
148 0 0 unless defined $levl
151 0 0 if ($self->iscompressed)
201 1 0 if ($fmtp eq 'application/x-bzip2') { }
0 0 elsif ($fmtp eq 'application/x-gzip') { }
220 0 1 unless defined $tpfh and $tpfh->opened
222 0 1 unless my $bz = bzopen($path, 'r')
227 0 1 if $bz->bzerror != BZ_OK() and $bz->bzerror != BZ_STREAM_END()
245 0 0 unless defined $tpfh and $tpfh->opened
247 0 0 unless my $gz = gzopen($path, 'r')
252 0 0 if $gz->gzerror != Z_OK() and $gz->gzerror != Z_STREAM_END()