Branch Coverage

blib/lib/Net/XMPP/Connection.pm
Criterion Covered Total %
branch 14 78 17.9


line true false branch
125 11 0 if $$self{'CB'}
147 10 0 unless exists $$self{'SERVER'}{'timeout'}
153 0 10 defined $$self{'SERVER'}{'ssl_ca_path'} && '' ne $$self{'SERVER'}{'ssl_ca_path'} ? :
10 0 defined $$self{'SERVER'}{'ssl_verify'} && '' ne $$self{'SERVER'}{'ssl_verify'} ? :
10 0 defined $$self{'SERVER'}{'componentname'} ? :
0 10 defined $$self{'SERVER'}{'srv'} ? :
182 10 0 if ($$self{'SESSION'}) { }
192 10 0 if (exists $$self{'SESSION'}{'version'} and $$self{'SESSION'}{'version'} ne '')
196 10 0 if (defined $tls and $$self{'SERVER'}{'tls'}) { }
0 0 elsif (defined $tls and $tls eq 'required') { }
245 0 0 if $$self{'CONNECTED'} == 1
269 0 0 unless exists $args{'connectiontype'}
270 0 0 unless exists $args{'connectattempts'}
271 0 0 unless exists $args{'connectsleep'}
272 0 0 unless exists $args{'register'}
287 0 0 unless (defined $status)
292 0 0 unless $connectAttempt == -1
298 0 0 if exists $$self{'CB'}{'onconnect'}
302 0 0 if (@result and $result[0] ne 'ok') { }
305 0 0 if exists $$self{'CB'}{'onauthfail'}
308 0 0 if (not $$self{'SERVER'}{'allow_register'} or $args{'register'} == 0) { }
312 0 0 if exists $$self{'CB'}{'ondisconnect'}
320 0 0 if ($result[0] ne 'ok') { }
323 0 0 if exists $$self{'CB'}{'onregisterfail'}
327 0 0 if exists $$self{'CB'}{'ondisconnect'}
333 0 0 if exists $$self{'CB'}{'onauth'}
340 0 0 if exists $$self{'CB'}{'onauth'}
349 0 0 if exists $$self{'CB'}{'onprocess'}
353 0 0 unless (defined $status)
359 0 0 if exists $$self{'CB'}{'ondisconnect'}
367 0 0 if not $$self{'RECONNECTING'} and $$self{'DISCONNECTED'}
371 0 0 if exists $$self{'CB'}{'onexit'}
403 0 30 if (exists $$self{'PROCESSERROR'} and $$self{'PROCESSERROR'} == 1)
408 30 0 if defined $timeout
410 0 30 if (not defined $timeout or $timeout eq '') { }
416 0 0 if $status{$$self{'SESSION'}{'id'}} != 0
420 0 0 if ($status{$$self{'SESSION'}{'id'}} == -1) { }
433 0 30 if ($status{$$self{'SESSION'}{'id'}} == -1) { }
514 0 66 exists $$self{'ARGS'}{$arg} ? :