Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
345 49 0 0 exists $$self{'SKIPXMLNS'} and $keepXMLNS == 0
355 15 15 19 defined $node->get_attrib('xmlns') and $keepXMLNS == 0
364 42 1 6 exists $$self{'RAWXML'} and $#{$$self{'RAWXML'};} > -1
613 578 0 0 ref $type eq 'ARRAY' and $$type[0] eq 'master'
699 413 0 178 defined $xmlns and exists $Net::XMPP3::Namespaces::NS{$xmlns}
856 36 0 24 defined $arg0 and $arg0 eq 'jid'
997 108 0 0 $subType ne '' and exists $$self{'CUSTOMSET'}{$subType}
1040 109 0 0 ref $val ne '' and $val->isa('Net::XMPP3::JID')
1149 116 0 117 @nodes > 0 && !defined($ns)
1153 117 116 0 not @nodes and $type eq 'child' || $type eq 'children' || $type eq 'node'
1155 0 16 0 ref $childtype eq 'HASH' and exists $$childtype{'ns'}
1166 20 9 7 defined $ns and $packet->GetXMLNS eq $ns
9 16 4 not defined $ns and $type =~ /child/
1206 0 0 0 $#_ > -1 and ($#_ / 2) =~ /^\d+$/

or 3 conditions

line l !l&&r !l&&!r condition
226 0 15 0 ref $proto || $proto
427 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
613 13 0 578 $type eq 'master' or ref $type eq 'ARRAY' and $$type[0] eq 'master'
626 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'
844 133 0 77 $type eq 'scalar' or $type eq 'timestamp'
898 14 0 0 $type eq 'child' or $type eq 'children'
14 0 0 $type eq 'child' or $type eq 'children' or $type eq 'node'
908 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
920 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
1038 109 0 0 defined $val or $type eq 'flag'
1051 70 0 84 $path =~ m[^/?\@] or $path =~ m[^/?text\(\)]
1059 42 0 3 $type eq 'scalar' or $type eq 'jid'
42 0 3 $type eq 'scalar' or $type eq 'jid' or $type eq 'timestamp'
1153 16 0 100 $type eq 'child' || $type eq 'children' || $type eq 'node'