Condition Coverage

blib/lib/XML/Stream.pm
Criterion Covered Total %
condition 40 155 25.8


and 3 conditions

line !l l&&!r l&&r condition
197 5 2 0 $$self{'DATASTYLE'} eq 'tree' and not defined $XML::Stream::Tree::LOADED
2 5 0 $$self{'DATASTYLE'} eq 'node' and not defined $XML::Stream::Node::LOADED
787 0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'}
0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and exists $$self{'SIDS'}{'newconnection'}{'httpproxyport'}
0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and exists $$self{'SIDS'}{'newconnection'}{'httpproxyport'} and defined $$self{'SIDS'}{'newconnection'}{'httpproxyport'}
792 0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'}
0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'} and exists $$self{'SIDS'}{'newconnection'}{'httpsproxyport'}
0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'} and defined $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'} and exists $$self{'SIDS'}{'newconnection'}{'httpsproxyport'} and defined $$self{'SIDS'}{'newconnection'}{'httpsproxyport'}
839 0 0 0 not $connected and exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'}
0 0 0 not $connected and exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and $$self{'SIDS'}{'newconnection'}{'ssl'} == 0
868 0 0 0 not $connected and exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'}
0 0 0 not $connected and exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} and $$self{'SIDS'}{'newconnection'}{'ssl'} == 0
897 0 0 0 not $connected and exists $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'}
933 0 0 0 $$self{'SIDS'}{'newconnection'}{'ssl'} == 1 and ref $$self{'SIDS'}{'newconnection'}{'sock'} eq 'IO::Socket::INET'
990 0 0 3 not exists $$self{'SIDS'}{$currsid}{'from'} and $$self{'SIDS'}{$currsid}{'myhostname'} ne ''
998 0 3 0 exists $$self{'SIDS'}{$currsid}{'id'} and $$self{'SIDS'}{$currsid}{'id'} ne ''
1116 0 0 3 exists $self->GetRoot($sid)->{'version'} and $self->GetRoot($sid)->{'version'} ne ''
1213 4 0 0 $$self{'SIDS'}{'newconnection'}{'select'}->has_exception(0) and $$self{'SIDS'}{'newconnection'}{'sock'}->error
1450 0 0 0 exists $$self{'SIDS'}{$serverid}{'sock'} and $connection == $$self{'SIDS'}{$serverid}{'sock'}
1539 4 0 0 exists $$self{'SIDS'}{$sid}{'activitytimeout'} and defined $self->GetRoot($sid)
1542 4 0 0 exists $$self{'SIDS'}{$sid}{'activitytimeout'} and time - $$self{'SIDS'}{$sid}{'activitytimeout'} > 10
4 0 0 exists $$self{'SIDS'}{$sid}{'activitytimeout'} and time - $$self{'SIDS'}{$sid}{'activitytimeout'} > 10 and $$self{'SIDS'}{$sid}{'status'} != 1
1583 4 0 0 $status{$sid} == 1 and $#{$$self{'SIDS'}{$sid}{'nodes'};} > -1
1636 0 4 7 defined $status and $status != 0
1915 0 0 0 not $self->TLSClientDone($sid) and $endTime >= time
2471 0 0 3 $tag eq 'stream:stream' && exists $att{'xmlns'} && $att{'xmlns'} eq $$self{'SIDS'}{$$self{'SIDS'}{$sid}{'serverid'}}{'namespace'}
2593 0 0 0 exists $$self{'SIDS'}{$sid}{'errorcode'} && ref $$self{'SIDS'}{$sid}{'errorcode'} eq 'HASH'
2691 0 0 0 exists $$root{'version'} and $$root{'version'} ne ''
2768 6 0 0 exists $$self{'SIDS'}{$sid}{'ignoreActivity'} and $$self{'SIDS'}{$sid}{'ignoreActivity'} == 1
3020 0 0 0 ref $hash eq 'HASH' and scalar keys %{$hash;} == 0
3268 1 0 0 defined $XML::Stream::SSL and $XML::Stream::SSL == 1
3274 1 0 0 defined $XML::Stream::SSL and $XML::Stream::SSL == 0
3331 4 0 0 exists $$self{'CB'}{'sid'} and defined $$self{'CB'}{'sid'}
3365 0 11 0 $tag eq 'node' and not defined $func

or 2 conditions

line l !l condition
208 7 0 gethostbyname $hostname || die("Cannot resolve ${hostname}: $!")

or 3 conditions

line l !l&&r !l&&!r condition
197 0 0 7 $$self{'DATASTYLE'} eq 'tree' and not defined $XML::Stream::Tree::LOADED or $$self{'DATASTYLE'} eq 'node' and not defined $XML::Stream::Node::LOADED
210 7 0 0 gethostbyaddr($address, 2) || $hostname
631 1 1 1 1 == $$self{'SIDS'}{'newconnection'}{'ssl'} or 1 == $$self{'SIDS'}{'newconnection'}{'_tls'}
809 0 0 0 exists $$self{'SIDS'}{'newconnection'}{'httpproxyhostname'} or exists $$self{'SIDS'}{'newconnection'}{'httpsproxyhostname'}
981 3 0 0 $$self{'SIDS'}{$currsid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$currsid}{'connectiontype'} eq 'http'
1033 3 0 0 $$self{'SIDS'}{$currsid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$currsid}{'connectiontype'} eq 'http'
1064 0 0 3 $timeEnd eq '' || $timeEnd - $now > 10
1101 3 0 0 $$self{'SIDS'}{$sid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$sid}{'connectiontype'} eq 'http'
1264 0 0 0 $$self{'SIDS'}{$sid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$sid}{'connectiontype'} eq 'http'
1433 4 0 0 $timeEnd eq '' || $timeEnd - $now > 10
1442 4 0 0 $$self{'SIDS'}{$$self{'SOCKETS'}{$connection}}{'status'} == 1 or exists $$self{'SIDS'}{$$self{'SOCKETS'}{$connection}}{'activitytimeout'}
1623 3 0 8 $$self{'SIDS'}{$sid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$sid}{'connectiontype'} eq 'http'
3 8 0 $$self{'SIDS'}{$sid}{'connectiontype'} eq 'tcpip' or $$self{'SIDS'}{$sid}{'connectiontype'} eq 'http' or $$self{'SIDS'}{$sid}{'connectiontype'} eq 'file'
1634 4 0 7 $buff eq '' or not defined $status
4 0 7 $buff eq '' or not defined $status or $status == 0
2636 0 0 0 not exists $$self{'SIDS'}{$sid}{'root'}{'version'} or $$self{'SIDS'}{$sid}{'root'}{'version'} eq ''
0 0 0 not exists $$self{'SIDS'}{$sid}{'root'}{'version'} or $$self{'SIDS'}{$sid}{'root'}{'version'} eq '' or $$self{'SIDS'}{$sid}{'root'}{'version'} < 1