Condition Coverage

blib/lib/XML/LibXML.pm
Criterion Covered Total %
condition 81 128 63.2


and 3 conditions

line !l l&&!r l&&r condition
368 43 0 0 exists $opts{'keep_blanks'} and not exists $opts{'no_blanks'}
369 26 4 13 exists $opts{'expand_entities'} and not exists $opts{'load_ext_dtd'}
594 0 0 1 @_ == 1 and ref $_[0] eq 'HASH'
631 3 7 7 scalar @_ and $_[0]
833 4 4 360 defined $_[0] and length $_[0]
956 1 2 72 defined $_[0] and length $_[0]
1107 0 0 18 defined $str and length $str
1230 0 40 159 defined $chunk and length $chunk
1397 3 7 0 defined $inc_prefix_list and not UNIVERSAL::isa($inc_prefix_list, 'ARRAY')
1424 0 0 3 defined $enc && length $enc
1445 0 29 4 defined $XML::LibXML::skipXMLDeclaration and $XML::LibXML::skipXMLDeclaration == 1
1448 4 0 0 $_->nodeType == 14 and $XML::LibXML::skipDTD
1561 5 0 8 &blessed($other) and $other->isa('XML::LibXML::Element')
1658 1 21 1 defined $nsURI and $nsURI eq 'http://www.w3.org/2000/xmlns/'
1668 0 0 50 defined $qname and length $qname
1671 5 44 1 defined $nsURI and $nsURI eq 'http://www.w3.org/2000/xmlns/'
1678 1 0 21 defined $nsURI && length $nsURI
27 21 1 $qname =~ /:/ and not defined $nsURI && length $nsURI
1684 0 0 1 defined $nsURI && $nsURI eq 'http://www.w3.org/XML/1998/namespace'
47 1 0 $qname =~ /^xml:/ and not defined $nsURI && $nsURI eq 'http://www.w3.org/XML/1998/namespace'
1908 2 0 2 defined $nsP && length $nsP
2215 3 9 25 defined $retval and $retval == 1
2290 0 0 11 ref $cbset eq 'ARRAY' and scalar @$cbset == 4
2300 0 0 1 ref $cbset eq 'ARRAY' and scalar @$cbset == 4
2335 680 0 4 defined $mcb and defined $ocb
680 0 4 defined $mcb and defined $ocb and defined $rcb
0 0 4 defined $mcb and defined $ocb and defined $rcb and defined $ccb
2341 683 0 1 defined $XML::LibXML::match_cb and defined $XML::LibXML::open_cb
683 0 1 defined $XML::LibXML::match_cb and defined $XML::LibXML::open_cb and defined $XML::LibXML::read_cb
0 0 1 defined $XML::LibXML::match_cb and defined $XML::LibXML::open_cb and defined $XML::LibXML::read_cb and defined $XML::LibXML::close_cb

or 2 conditions

line l !l condition
308 25 0 $self->{'XML_LIBXML_PARSER_OPTIONS'} || 0
626 19 14 $self->recover || 0
1020 21 1 $doc || ' '
1044 0 0 $doc || ' '
1242 1 76 shift() || 0
1362 2 12 $comments || 0
1376 0 0 $comments || 0
1400 0 10 $comments || 0
1454 0 27 $flag ||= 0
1806 6 0 $rightre ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
363 0 65 0 $compatibility_flags{$_} || $_
436 9 1 3 not @_ or $_[0] =~ /^\d\.\d$/
571 19 4 1 $XML::LibXML::PARSER_FLAGS{$name} || $OUR_FLAGS{$name}
1600 3 2 28 scalar @_ < 3 or $_[2] == 1
1657 0 0 23 not defined $name or $name eq ''
2239 0 0 25 not defined $retval or $retval == 0