Branch Coverage

blib/lib/PITA/XML/SAXParser.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
105 0 10 unless ($root)
128 0 35 unless (@{$$self{'context'};})
170 0 78 if ($$element{'Prefix'})
179 10 68 unless (@{$$self{'context'};})
180 0 10 unless ($$element{'LocalName'} eq $$self{'root'})
186 2 8 if (defined $$hash{'id'})
197 0 68 unless $self->can($handler)
209 10 68 if ($$element{'LocalName'} eq $$self{'root'} and @{$$self{'context'};} == 1)
216 0 68 unless $self->can($handler)
219 51 17 if (exists $$self{'chars'} and defined $$self{'chars'})
220 37 14 if ($PITA::XML::SAXParser::TRIM{$$element{'LocalName'}})
237 51 19 if (exists $$self{'chars'} and defined $$self{'chars'})
283 0 1 if (defined $$attr{'id'})
317 4 3 if (_INSTANCE $self->_context, 'PITA::XML::Guest') { }
3 0 elsif (_INSTANCE $self->_context, 'PITA::XML::Request') { }
347 1 1 if (_INSTANCE $self->_context, 'PITA::XML::Install') { }
1 0 elsif (_INSTANCE $self->_context, 'PITA::XML::Guest') { }
394 1 0 if ($$hash{'name'})
526 2 0 if (exists $$self{'chars'})