Condition Coverage

blib/lib/Net/Stomp.pm
Criterion Covered Total %
condition 27 47 57.4


and 3 conditions

line !l l&&!r l&&r condition
116 15 20 13 defined $self->current_host and $self->current_host < $#{$hosts;}
169 0 0 0 $socket and $keep_alive
191 0 0 11 $frame and $frame->command eq "CONNECTED"
244 0 0 0 $self->{'_framebuf_changed'} and length $self->{'_framebuf'}
289 3 2 4 $receipt_frame and $receipt_frame->command eq "RECEIPT"
5 2 2 $receipt_frame and $receipt_frame->command eq "RECEIPT" and $receipt_frame->headers->{'receipt-id'} eq $receipt_id
419 1 1 45 defined $written and $self->_connected
434 2 1 103 defined $len and $len > 0
516 161 2 1 $self->{'_pid'} != $$ and $self->reconnect_on_fork

or 2 conditions

line l !l condition
125 2 46 $h->{'ssl_options'} || {}
199 0 0 $frame // {}
249 0 0 $conf ||= {}
251 0 0 $self->select->can_read($timeout) || 0
432 71 35 $self->{'_framebuf'} || ''
549 10 3 $self->serial || 0
553 1 12 $self->session_id || 'nosession'

or 3 conditions

line l !l&&r !l&&!r condition
164 0 0 0 eval { do { require IO::Socket::IP; 'IO::Socket::IP'->VERSION('0.20'); 'IO::Socket::IP' } } || do { require IO::Socket::INET; 'IO::Socket::INET' }
0 0 0 $socket_class ||= eval { do { require IO::Socket::IP; 'IO::Socket::IP'->VERSION('0.20'); 'IO::Socket::IP' } } || do { require IO::Socket::INET; 'IO::Socket::INET' }