Condition Coverage

blib/lib/Audio/FLAC/Header.pm
Criterion Covered Total %
condition 24 61 39.3


and 3 conditions

line !l l&&!r l&&r condition
500 32 0 0 exists $$tags{$tkey} and ref $$tags{$tkey} ne 'ARRAY'
555 0 0 2 $isCD and length $catalog != 13
0 2 0 $isCD and length $catalog != 13 and length $catalog != 0
560 2 0 0 not $isCD and $leadin > 0
580 0 2 0 $isCD and $numTracks > 100
596 0 16 0 $isCD and $trackOffset % 588
607 0 14 2 $isCD and $tracknum > 99
14 2 0 $isCD and $tracknum > 99 and $tracknum != 170
622 16 0 0 length $isrc != 0 and length $isrc != 12
649 0 2 0 $isCD and $tracknum != 170
665 0 14 0 $isCD and $numIndexes > 100
677 0 26 0 $isCD and $indexOffset % 588

or 2 conditions

line l !l condition
82 7 0 $self->_checkHeader($fh) || 0
104 16 12 $BLOCK_TYPES{$$block{'blockType'}} || (next)
158 1 0 shift() || 'default'
192 1 0 $$self{'tags'}{'VENDOR'} || ''
846 0 2 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
197 0 0 0 shift() || $VENDOR_STRING
233 0 1 0 $$self{'tags'}{'VENDOR'} || $VENDOR_STRING
580 0 0 2 $numTracks < 1 or $isCD and $numTracks > 100
601 16 0 0 _bin2dec(unpack('B8', substr($tmpBlock, 8, 1))) || do { warn qq[Invalid track numbered "0" detected\n]; return -1 }
665 0 0 14 $numIndexes < 1 or $isCD and $numIndexes > 100