Branch Coverage

blib/lib/Net/STOMP/Client.pm
Criterion Covered Total %
branch 0 160 0.0


line true false branch
61 0 0 if (defined $timeout) { }
62 0 0 if (ref $timeout eq '') { }
0 0 elsif (ref $timeout eq 'HASH') { }
102 0 0 unless $callback
140 0 0 unless $command =~ /^(CONNECTED|ERROR|MESSAGE|RECEIPT)$/
143 0 0 unless $callback
162 0 0 unless $Hook{$command}
220 0 0 if ($Net::STOMP::Client::Debug::Flags and not exists $option->{'debug'})
221 0 0 unless &No::Worries::Log::log_wants_debug()
224 0 0 if $Net::STOMP::Client::Debug::Flags & 1
226 0 0 if $Net::STOMP::Client::Debug::Flags & 2
228 0 0 if $Net::STOMP::Client::Debug::Flags & 4
230 0 0 if $Net::STOMP::Client::Debug::Flags & 8
232 0 0 if $Net::STOMP::Client::Debug::Flags & 16
262 0 0 if ($self =~ /\(0x(\w+)\)/) { }
269 0 0 unless exists $self->{'debug'}
273 0 0 if $self->{'sockopts'}
275 0 0 if $sockopts{'SSL_cert_file'} or $sockopts{'SSL_key_file'}
276 0 0 unless (exists $sockopts{'Timeout'})
278 0 0 if $timeout
281 0 0 if defined $self->{'debug'}
282 0 0 if defined $self->{'host'}
283 0 0 if defined $self->{'port'}
284 0 0 if defined $self->{'uri'}
285 0 0 if keys %sockopts
289 0 0 if ($self->uri)
316 0 0 if $self->{'session'} and $self->{'io'}
321 0 0 if ($socket)
326 0 0 unless $socket->isa("IO::Socket::SSL")
366 0 0 unless $self->{'io'}
373 0 0 unless $self->{'io'}
380 0 0 unless $self->{'io'}
405 0 0 if @_ == 1
418 0 0 unless exists $option{'debug'}
420 0 0 if ($what) { }
422 0 0 unless exists $option{'timeout'}
440 0 0 unless $self->{'io'}
455 0 0 unless $self->{'io'}
469 0 0 unless $self->{'io'}
470 0 0 if (ref $frame) { }
474 0 0 if $self->{'version'}
499 0 0 if $self->outgoing_buffer_length
513 0 0 unless exists $option{'timeout'}
515 0 0 if defined $option{'timeout'}
518 0 0 if $self->{'version'}
519 0 0 if exists $option{'debug'}
520 0 0 unless exists $decopt{'debug'}
526 0 0 if (not defined $option{'timeout'}) { }
0 0 elsif ($option{'timeout'}) { }
531 0 0 if $remaining <= 0
537 0 0 unless $self->receive_data(%option)
542 0 0 if $frame
556 0 0 if exists $option{'debug'}
557 0 0 unless exists $recvopt{'debug'}
558 0 0 if (defined $option{'timeout'})
564 0 0 if ($frame)
567 0 0 if ($callback) { }
571 0 0 if not defined $result or $result or $option{'once'}
578 0 0 if (defined $maxtime)
580 0 0 if $remaining <= 0
619 0 0 if exists $header->{'debug'}
621 0 0 if exists $header->{'timeout'}
622 0 0 exists $option->{'debug'} ? :
623 0 0 if $debug and $debug =~ /\b(api|all)\b/
625 0 0 if ($name eq 'connect') { }
626 0 0 if $self->{'session'}
628 0 0 unless $self->{'session'}
652 0 0 unless $self->{'session'}
672 0 0 if ($header{'receipt'})
739 0 0 if defined $header{'body'}
741 0 0 if defined $header{'body_reference'}
761 0 0 if ($header{'frame'})
763 0 0 if defined $value
765 0 0 if defined $value
767 0 0 if defined $value
789 0 0 if $self->{'version'} eq "1.0"
791 0 0 if ($header{'frame'})
793 0 0 if defined $value
795 0 0 if defined $value
797 0 0 if defined $value