Branch Coverage

blib/lib/PICA/Parser.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
20 29 0 if (scalar(@_) % 2)
32 23 6 if %params
42 24 16 if (ref $self eq 'PICA::Parser') { }
45 2 12 if (ref \$arg eq 'SCALAR' and $arg =~ /.xml$/i || $arg =~ /.xml.gz$/i)
49 0 24 unless defined $arg
53 13 3 $self eq 'PICA::Parser' ? :
54 0 16 unless defined $arg
66 10 6 if (ref $self eq 'PICA::Parser') { }
73 6 0 $self eq 'PICA::Parser' ? :
83 0 5 unless ref $self
85 4 1 if $$self{'plainparser'}
86 0 1 if $$self{'xmlparser'}
94 0 6 unless ref $self
97 6 0 if $$self{'plainparser'}
98 0 6 if $$self{'xmlparser'}
106 12 44 if $layer =~ /^encoding|^utf8/
115 1 33 if defined $params{'Proceed'}
130 2 32 if defined $params{'Format'}
133 2 32 if (defined $unionparams{'Format'} and $unionparams{'Format'} =~ /^xml$/i) { }
134 2 0 if (not $$self{'xmlparser'} or %params)
141 28 4 if (not $$self{'plainparser'} or %params)