Branch Coverage

blib/lib/Net/XMPP3/Connection.pm
Criterion Covered Total %
branch 1 70 1.4


line true false branch
130 0 0 unless exists $$self{'SERVER'}{'timeout'}
136 0 0 defined $$self{'SERVER'}{'componentname'} ? :
150 0 0 if ($$self{'SESSION'}) { }
158 0 0 if (exists $$self{'SESSION'}{'version'} and $$self{'SESSION'}{'version'} ne '')
162 0 0 if (defined $tls and $$self{'SERVER'}{'tls'}) { }
0 0 elsif (defined $tls and $tls eq 'required') { }
211 0 0 if $$self{'CONNECTED'} == 1
235 0 0 unless exists $args{'connectiontype'}
236 0 0 unless exists $args{'connectattempts'}
237 0 0 unless exists $args{'connectsleep'}
238 0 0 unless exists $args{'register'}
253 0 0 unless (defined $status)
258 0 0 unless $connectAttempt == -1
264 0 0 if exists $$self{'CB'}{'onconnect'}
268 0 0 if (@result and $result[0] ne 'ok') { }
271 0 0 if exists $$self{'CB'}{'onauthfail'}
274 0 0 if (not $$self{'SERVER'}{'allow_register'} or $args{'register'} == 0) { }
278 0 0 if exists $$self{'CB'}{'ondisconnect'}
286 0 0 if ($result[0] ne 'ok') { }
289 0 0 if exists $$self{'CB'}{'onregisterfail'}
293 0 0 if exists $$self{'CB'}{'ondisconnect'}
299 0 0 if exists $$self{'CB'}{'onauth'}
306 0 0 if exists $$self{'CB'}{'onauth'}
315 0 0 if exists $$self{'CB'}{'onprocess'}
319 0 0 unless (defined $status)
325 0 0 if exists $$self{'CB'}{'ondisconnect'}
333 0 0 if not $$self{'RECONNECTING'} and $$self{'DISCONNECTED'}
337 0 0 if exists $$self{'CB'}{'onexit'}
369 0 0 if (exists $$self{'PROCESSERROR'} and $$self{'PROCESSERROR'} == 1)
374 0 0 if defined $timeout
376 0 0 if (not defined $timeout or $timeout eq '') { }
382 0 0 if $status{$$self{'SESSION'}{'id'}} != 0
386 0 0 if ($status{$$self{'SESSION'}{'id'}} == -1) { }
399 0 0 if ($status{$$self{'SESSION'}{'id'}} == -1) { }
480 0 6 exists $$self{'ARGS'}{$arg} ? :