Condition Coverage

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


and 2 conditions

line l !l condition
647 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'}
195 11 0 11 $header->readSig && $header->readStreams
236 0 0 8 $header->readSig and $header->readStreams
264 0 0 2948 defined $sname and length $sname
278 0 0 34 $stream->readSig and $stream->readBATs
303 0 0 0 $stream->readSig and $stream->readBATs
345 0 0 1215 defined $bat and $bat->readSig
0 0 1215 defined $bat and $bat->readSig and $bat->readData
377 0 0 22 defined $block && $block->bread(\$raw, 0, 1) == 1
409 0 0 22 defined $block && $block->readSig && $block->readData
445 11 0 33 defined $block && $block->readSig && $block->readBATs
503 0 0 22 $header->readSig and $header->readStreams
552 0 0 114 defined $data and $data->allocate
0 0 114 defined $data and $data->allocate and $header->incrBlocks
578 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
609 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
840 0 0 555 defined $stream and defined $content
0 0 555 defined $stream and defined $content and length $content
861 0 0 555 defined $bat and defined $block
963 0 0 68 defined $stream and defined $cref
0 0 68 defined $stream and defined $cref and ref $cref eq "SCALAR"
976 46 22 83 $pos < $eos and $rv < $btr
1111 0 0 11 $rv = $self->strmSeek($sname, $neos, 0) and $self->strmWrite($sname, $zeroes)
1146 11 11 132 defined $self->{'file'} and length $self->{'file'}

or 2 conditions

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

or 3 conditions

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