Condition Coverage

blib/lib/Net/XMPP/Stanza.pm
Criterion Covered Total %
condition 48 108 44.4


and 3 conditions

line !l l&&!r l&&r condition
355 49 0 0 exists $$self{'SKIPXMLNS'} and $keepXMLNS == 0
365 15 15 19 defined $node->get_attrib('xmlns') and $keepXMLNS == 0
374 42 1 6 exists $$self{'RAWXML'} and $#{$$self{'RAWXML'};} > -1
623 578 0 0 ref $type eq 'ARRAY' and $$type[0] eq 'master'
709 413 0 178 defined $xmlns and exists $Net::XMPP::Namespaces::NS{$xmlns}
866 36 0 24 defined $arg0 and $arg0 eq 'jid'
1007 108 0 0 $subType ne '' and exists $$self{'CUSTOMSET'}{$subType}
1050 109 0 0 ref $val ne '' and $val->isa('Net::XMPP::JID')
1159 116 0 117 @nodes > 0 && !defined($ns)
1163 117 116 0 not @nodes and $type eq 'child' || $type eq 'children' || $type eq 'node'
1165 0 16 0 ref $childtype eq 'HASH' and exists $$childtype{'ns'}
1176 20 9 7 defined $ns and $packet->GetXMLNS eq $ns
9 16 4 not defined $ns and $type =~ /child/
1216 0 0 0 $#_ > -1 and ($#_ / 2) =~ /^\d+$/

or 3 conditions

line l !l&&r !l&&!r condition
236 0 15 0 ref $proto || $proto
437 0 0 1 not defined $xmlns or $xmlns eq ''
0 1 0 not defined $xmlns or $xmlns eq '' or $$self{'CHILDREN'}[$index]->GetXMLNS eq $xmlns
623 13 0 578 $type eq 'master' or ref $type eq 'ARRAY' and $$type[0] eq 'master'
636 0 0 0 not defined $funcType or $funcType eq 'scalar'
0 0 0 not defined $funcType or $funcType eq 'scalar' or $funcType eq 'jid'
0 0 0 not defined $funcType or $funcType eq 'scalar' or $funcType eq 'jid' or $funcType eq 'array'
0 0 0 not defined $funcType or $funcType eq 'scalar' or $funcType eq 'jid' or $funcType eq 'array' or $funcType eq 'flag'
0 0 0 not defined $funcType or $funcType eq 'scalar' or $funcType eq 'jid' or $funcType eq 'array' or $funcType eq 'flag' or $funcType eq 'timestamp'
0 0 0 not defined $funcType or $funcType eq 'scalar' or $funcType eq 'jid' or $funcType eq 'array' or $funcType eq 'flag' or $funcType eq 'timestamp' or ref $funcType eq 'ARRAY'
854 133 0 77 $type eq 'scalar' or $type eq 'timestamp'
908 14 0 0 $type eq 'child' or $type eq 'children'
14 0 0 $type eq 'child' or $type eq 'children' or $type eq 'node'
918 11 0 15 not defined $xmlns or $xmlns eq ''
11 9 6 not defined $xmlns or $xmlns eq '' or $child->GetTree(1)->get_attrib('xmlns') eq $xmlns
930 0 0 0 not defined $xmlns or $xmlns eq ''
0 0 0 not defined $xmlns or $xmlns eq '' or $node->get_attrib('xmlns') eq $xmlns
1048 109 0 0 defined $val or $type eq 'flag'
1061 70 0 84 $path =~ m[^/?\@] or $path =~ m[^/?text\(\)]
1069 42 0 3 $type eq 'scalar' or $type eq 'jid'
42 0 3 $type eq 'scalar' or $type eq 'jid' or $type eq 'timestamp'
1163 16 0 100 $type eq 'child' || $type eq 'children' || $type eq 'node'