Condition Coverage

blib/lib/Paranoid/IO/FileMultiplexer.pm
Criterion Covered Total %
condition 44 100 44.0


and 2 conditions

line l !l condition
673 0 33 $rv = $header->addStream($sname, $header->blocks) and $self->_addStream($sname)

and 3 conditions

line !l l&&!r l&&r condition
98 11 11 132 defined $args{'file'} and length $args{'file'}
199 11 0 11 $header->readSig && $header->readStreams
242 0 0 8 $header->readSig and $header->readStreams
272 0 0 2948 defined $sname and length $sname
286 0 0 34 $stream->readSig and $stream->readBATs
311 0 0 0 $stream->readSig and $stream->readBATs
355 0 0 1215 defined $bat and $bat->readSig
0 0 1215 defined $bat and $bat->readSig and $bat->readData
389 0 0 22 defined $block && $block->bread(\$raw, 0, 1) == 1
423 0 0 22 defined $block && $block->readSig && $block->readData
461 11 0 33 defined $block && $block->readSig && $block->readBATs
521 0 0 22 $header->readSig and $header->readStreams
572 0 0 114 defined $data and $data->allocate
0 0 114 defined $data and $data->allocate and $header->incrBlocks
600 0 0 44 defined $bat and $bat->allocate
0 0 44 defined $bat and $bat->allocate and $bat->writeSig
0 0 44 defined $bat and $bat->allocate and $bat->writeSig and $header->incrBlocks
633 0 0 33 defined $stream and $stream->allocate
0 0 33 defined $stream and $stream->allocate and $stream->writeSig
0 0 33 defined $stream and $stream->allocate and $stream->writeSig and $header->incrBlocks
875 0 0 555 defined $stream and defined $content
0 0 555 defined $stream and defined $content and length $content
896 0 0 555 defined $bat and defined $block
1000 0 0 68 defined $stream and defined $cref
0 0 68 defined $stream and defined $cref and ref $cref eq "SCALAR"
1013 46 22 83 $pos < $eos and $rv < $btr
1154 0 0 11 $rv = $self->strmSeek($sname, $neos, 0) and $self->strmWrite($sname, $zeroes)
1190 11 11 132 defined $self->{'file'} and length $self->{'file'}

or 2 conditions

line l !l condition
987 68 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
109 77 11 44 $self->_newFile or $self->_oldFile
657 0 11 33 $self->{'readOnly'} || $self->{'corrupted'}
969 0 0 555 $self->{'readOnly'} || $self->{'corrupted'}
1176 0 0 11 $self->{'readOnly'} || $self->{'corrupted'}