Condition Coverage

blib/lib/Jabber/Lite.pm
Criterion Covered Total %
condition 38 367 10.3


and 2 conditions

line l !l condition
1739 0 0 defined $rauths{'jabber:iq:auth-token'} and $gotdsha1 and !1

and 3 conditions

line !l l&&!r l&&r condition
442 450 0 144 defined $weights{"$wghtpos"} and $trycnt < $wghtcnt
522 0 0 0 defined $args{'Domain'} and defined $args{'Type'}
0 0 0 defined $args{'Domain'} and defined $args{'Type'} and defined $args{'Protocol'}
0 0 0 defined $args{'Domain'} and defined $args{'Type'} and defined $args{'Protocol'} and $self->_got_Net_DNS
567 0 0 0 $qname =~ /^_jabber\._([^\.]+)\.(\S+)$/i and $args{'Type'} =~ /^server$/i
660 0 0 0 defined $bname and defined $res
0 0 0 defined $bname and defined $res and defined $q1
666 0 0 0 not defined $$self{'_queries'}{$q1}{'completed'} and defined $$self{'_queries'}{$q1}{'start'}
0 0 0 defined $q2 and not defined $$self{'_queries'}{$q2}{'completed'}
0 0 0 defined $q2 and not defined $$self{'_queries'}{$q2}{'completed'} and defined $$self{'_queries'}{$q2}{'start'}
693 0 0 0 defined $$self{'_queries'}{$q1}{'completed'} and defined $$self{'_queries'}{$q1}{'start'}
707 0 0 0 defined $q2pkt and defined $$self{'_queries'}{$q1}{';;success'}
732 0 0 0 $ancount == 1 and $target eq '.'
0 0 0 $prio =~ /^\s*\d+\s*$/ and $wght =~ /^\s*\d+\s*$/
0 0 0 $prio =~ /^\s*\d+\s*$/ and $wght =~ /^\s*\d+\s*$/ and $port =~ /^\s*\d+\s*$/
0 0 0 $prio =~ /^\s*\d+\s*$/ and $wght =~ /^\s*\d+\s*$/ and $port =~ /^\s*\d+\s*$/ and $target =~ /^\S{2,}$/
818 0 0 0 $foundcount == 0 and $srvcompleted == 1
1089 0 0 0 $args{'UseSSL'} || $args{'MustEncrypt'} and not $self->_check_val('_is_encrypted')
1119 0 0 0 not $gotssl and $args{'MustEncrypt'}
1293 0 0 0 $$self{'_connectargs'}{'MustEncrypt'} and not $self->is_encrypted
0 0 0 $self->_check_val('_ask_encrypted') and not $self->is_encrypted
1304 0 0 0 $retval == 1 and $self->_check_val('confirmedns')
1318 0 0 0 $retval == 1 and not $self->_check_val('streamid')
1324 0 0 0 $retval == 1 and $self->_check_val('streamversion')
1325 0 0 0 $$self{'streamversion'} >= 1 and not $self->_check_val('stream:features')
1509 0 0 0 defined $args{'ComponentSecret'} and $self->_check_val('streamxmlns')
1627 0 0 0 $retval and $self->_check_val('_ask_handshake')
1657 0 0 0 $retval == 1 and not $self->_check_val('_started_auth')
0 0 0 $retval == 1 and $self->_check_val('_started_auth')
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $self->_check_val('_sent_iq_auth')
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $self->_check_val('_sent_iq_auth') and $authas eq 'client'
0 0 0 $retval == 1 and $self->_check_val('_started_auth')
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $authas eq 'client'
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $authas eq 'client' and not $self->_check_val('_auth_failed')
0 0 0 $retval == 1 and $self->_check_val('_started_auth')
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $authas eq 'client'
0 0 0 $retval == 1 and $self->_check_val('_started_auth') and $authas eq 'client' and $self->_check_val('_auth_failed')
1739 0 0 0 $somesasl and $gotasasl
0 0 0 $somesasl and $gotasasl and $gotmba64
0 0 0 defined $rauths{'jabber:iq:auth-token'} and $gotdsha1
0 0 0 defined $rauths{'jabber:iq:auth-digest'} and $gotdsha1
1824 0 0 0 $retval == 1 and $self->_check_val('_auth_finished')
1842 0 0 0 $retval == 1 and not $self->_check_val('_need_auth_bind')
0 0 0 $retval == 1 and $self->_check_val('_need_auth_bind')
0 0 0 $retval == 1 and $self->_check_val('_need_auth_bind') and not $self->_check_val('_done_auth_bind')
1863 0 0 0 $retval == 1 and not $self->_check_val('_need_auth_session')
0 0 0 $retval == 1 and $self->_check_val('_need_auth_session')
1883 0 0 0 $retval == 1 and $self->_check_val('_auth_finished')
1905 0 0 0 $retval > 0 and not defined $$self{'_connect_jid'}
1931 0 0 0 defined $node and defined $sendtype
1934 0 0 0 $sendtype eq 'iq-auth' and $node->name eq 'iq'
1968 0 0 0 $node->name eq 'failure' || $node->name eq 'abort' and $node->xmlns eq $saslxmlns
0 0 0 $node->name eq 'success' and $node->xmlns eq $saslxmlns
0 0 0 $node->name eq 'challenge' and $node->xmlns eq $saslxmlns
2171 0 0 0 $stillgoing and time < $endtime
2176 0 0 0 $args{'Ask'} || $args{'JustAsk'} and not $havesent
0 0 0 $args{'Ask'} and $havesent
0 0 0 $args{'Ask'} and $havesent and not $gotans
2262 0 0 0 defined $node and defined $idval
2264 0 0 0 $node->name eq 'iq' and $node->attr('id') eq $idval
2360 0 0 0 $doso and $stillgoing
2421 0 0 0 defined $node and defined $idval
2441 0 0 0 $etag->type eq 'modify' and defined $badreq
0 0 0 $etag->type eq 'cancel' and defined $conflict
2548 0 0 0 $doso and $stillgoing
2626 0 0 0 defined $node and defined $idval
2647 0 0 0 $etag->type eq 'modify' and defined $badreq
0 0 0 $etag->type eq 'cancel' and defined $conflict
2722 0 0 0 defined $args{'Class'} and defined $args{'Type'}
0 0 0 defined $args{'Type'} and not defined $args{'Class'}
0 0 0 defined $args{'Class'} and not defined $args{'Type'}
2783 0 0 0 defined $ptype and defined $process
2850 0 0 0 $args{'Interval'} != -1 and defined $args{'Sub'}
2974 0 0 0 $retval == 1 and defined $$self{'handlers'}
3000 0 0 0 $loop < $maxhandlers and $stillgoing
3107 0 0 0 $amconnected and $nwritable
3125 0 0 0 $tref eq 'Jabber::Lite' || $tref eq 'Jabber::Lite::Impl' and $nwritable
0 0 0 $tref eq 'Jabber::Lite' || $tref eq 'Jabber::Lite::Impl' and $nwritable and $amconnected
0 0 0 $nwritable and $amconnected
3367 0 0 0 defined $socket and not $self->is_eof
0 0 0 defined $socket and not $self->is_eof and not $args{'PendingOnly'}
3609 0 0 0 defined $args{'Key'} and defined $args{'Interval'}
3611 0 0 0 $args{'Once'} and $args{'FirstOnce'}
3619 0 0 0 $stillgoing and defined ${$$self{'heartbeats'};}[$loopinsert]
3673 0 0 0 $node->name eq 'proceed' and $node->xmlns eq $tlsxmlns
0 0 0 $node->name eq 'failure' and $node->xmlns eq $tlsxmlns
3775 0 0 0 defined $ssltag and $$self{'_connectargs'}{'UseTLS'}
0 0 0 defined $ssltag and $$self{'_connectargs'}{'UseTLS'} and not $self->is_encrypted
4101 0 0 0 defined $$self{'_curobjs'} and defined $wantname
4104 0 0 0 $loop < $maxobjs and not defined $retobj
4160 0 0 0 defined $attribvalue and defined $attribname
4311 0 0 0 defined $match and defined $$self{'_curobjs'}
4337 0 0 0 defined $$self{'_curobj'} and defined $match
4465 0 0 0 $tloop < $tstrlength and $stillgoing
4468 0 0 0 $foundopen >= 0 and not $thischar =~ /^(\s*|\])$/
0 0 0 $foundopen >= 0 and $thischar eq ']'
4797 9 4 36 $pmloop > 0 and length $str > 0
4847 13 0 0 $$self{'_name'} =~ /\?>$/s and $$self{'_name'} =~ /^\?/
4974 1 0 17 $loop < $strlength and $stillgoing
5063 1 3 18 $loop < $strlength and $stillgoing
5084 4 1 0 $thischar eq '?' and $$self{'_name'} =~ /^\?/
5114 1 0 0 $prevquery == $loop - 1 and $$self{'_name'} =~ /^\?(.*)$/s
0 1 0 $prevquery != $loop - 1 and $$self{'_name'} =~ /^\?(.*)$/s
5273 9 3 30 $curstatus =~ /^subtag/s and $canparse
12 19 11 $curstatus =~ /^subtag/s and $canparse and $retval != -2
22 0 11 $curstatus =~ /^subtag/s and $canparse and $retval != -2 and $numloops > 0
5293 0 8 26 $loop < $strlength and $stillgoing
5343 0 0 8 $loop <= $strlength and $stillgoing == 0
5371 6 0 4 $curstatus eq 'subtag' and $istag
5430 3 0 3 $retval != -2 and defined ${$$self{'_curobjs'};}[$offnum]
3 1 2 $retval != -2 and defined ${$$self{'_curobjs'};}[$offnum] and $strlength > 0
5466 3 1 16 $loop < $strlength and $stillgoing
5570 8 0 5 $curstatus eq 'complete' and $retval >= 0

or 2 conditions

line l !l condition
3468 0 0 $2 || undef

or 3 conditions

line l !l&&r !l&&!r condition
1089 0 0 0 $args{'UseSSL'} || $args{'MustEncrypt'}
1968 0 0 0 $node->name eq 'failure' || $node->name eq 'abort'
2176 0 0 0 $args{'Ask'} || $args{'JustAsk'}
2441 0 0 0 $etag->type eq 'modify' and defined $badreq or $etag->type eq 'cancel' and defined $conflict
2647 0 0 0 $etag->type eq 'modify' and defined $badreq or $etag->type eq 'cancel' and defined $conflict
3125 0 0 0 $tref eq 'Jabber::Lite' || $tref eq 'Jabber::Lite::Impl'
3611 0 0 0 not $args{'Once'} or $args{'Once'} and $args{'FirstOnce'}
4540 0 0 0 not $gotmore or $mustend