Condition Coverage

blib/lib/XML/LibXML/SAX/Builder.pm
Criterion Covered Total %
condition 41 54 75.9


and 3 conditions

line !l l&&!r l&&r condition
52 0 9 0 defined $dtd->{'Name'} and defined $dtd->{'SystemId'} || defined $dtd->{'PublicId'}
164 0 0 18 defined $uri and defined $el->{'NamespaceURI'}
0 7 11 defined $uri and defined $el->{'NamespaceURI'} and $uri eq $el->{'NamespaceURI'}
186 27 18 17 $self->{'USENAMESPACESTACK'} and $attr->{'Name'} eq 'xmlns' || defined $attr->{'Prefix'} && $attr->{'Prefix'} eq 'xmlns'
189 0 30 14 defined $attr->{'Prefix'} and $attr->{'Prefix'} eq "xmlns"
30 0 14 defined $attr->{'Prefix'} and $attr->{'Prefix'} eq "xmlns" and $skip_ns == 0
240 0 0 109 defined $chars and defined $chars->{'Data'}
244 1 12 6 defined $self->{'IN_CDATA'} and $self->{'IN_CDATA'} == 1
245 44 41 5 defined $self->{'IN_CDATA'} and $self->{'IN_CDATA'} == 1
273 0 3 11 defined $chars and defined $chars->{'Data'}

or 2 conditions

line l !l condition
66 0 1 $self->{'Version'} || '1.0'
130 21 50 $el->{'NamespaceURI'} ||= ""
199 11 19 $attr->{'NamespaceURI'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
52 0 0 9 defined $dtd->{'SystemId'} || defined $dtd->{'PublicId'}
98 13 1 4 defined $self->{'DOM'} or defined $self->{'Parent'}
123 107 21 14 defined $self->{'DOM'} or defined $self->{'Parent'}
186 2 16 17 $attr->{'Name'} eq 'xmlns' || defined $attr->{'Prefix'} && $attr->{'Prefix'} eq 'xmlns'
232 90 12 7 defined $self->{'DOM'} or defined $self->{'Parent'}
267 8 4 2 defined $self->{'DOM'} or defined $self->{'Parent'}