Condition Coverage

blib/lib/PICA/Writer.pm
Criterion Covered Total %
condition 11 47 23.4


and 3 conditions

line !l l&&!r l&&r condition
59 0 3 0 not defined $format and $output =~ /\.xml$/
69 6 0 0 defined $format and $format =~ /^(plain|normalized|xml)$/i
72 6 0 0 $format =~ /^xml$/i and defined $output
80 2 4 0 defined $output and not $$self{'io'}
118 0 0 0 $format eq 'xml' and defined $$self{'xmlwriter'}
135 0 0 0 $format eq 'xml' and defined $$self{'xmlwriter'}
136 7 2 1 $$self{'recordcounter'} > 0 and $$self{'io'}
140 0 0 0 $$self{'recordcounter'} > 0 and $$self{'io'}
173 6 0 0 $$self{'options'}{'format'} eq 'xml' and defined $writer
265 4 2 0 defined $params{'PREFIX_MAP'} and defined $params{'PREFIX_MAP'}{$PICA::Record::XMLNAMESPACE}
295 0 0 0 defined $v{$sf} and $v{$sf} eq $value
310 0 0 0 $o{$sf} > 1 and $$cur{'occ'} < 2
313 0 0 0 defined $v{$sf} and defined $$cur{'val'}
0 0 0 defined $v{$sf} and defined $$cur{'val'} and $v{$sf} eq $$cur{'val'}
358 0 0 0 $count{$tag} > 1 and $$fieldstat{$tag} < 2

or 2 conditions

line l !l condition
237 0 0 $$self{'fieldstat'} || {}