Condition Coverage

blib/lib/Mojo/RabbitMQ/Client.pm
Criterion Covered Total %
condition 6 33 18.1


and 3 conditions

line !l l&&!r l&&r condition
106 0 0 0 $id and $self->channels->{$id}
111 0 0 0 $self->max_channels > 0 and scalar keys %{$self->channels;} >= $self->max_channels
197 18 0 0 &blessed(scalar $self->url) and $self->url->isa('Mojo::URL')
218 0 11 7 defined $self->url->host and $self->url->host ne ''
232 0 9 9 defined $vhost and $vhost ne ''
291 0 0 0 $frame->isa('Net::AMQP::Frame::Method') and $frame->method_frame->isa('Net::AMQP::Protocol::Connection::Close')

or 2 conditions

line l !l condition
26 0 5 $ENV{'MOJO_RABBITMQ_DEBUG'} // 0
312 0 0 $frame->channel // '(undef)'
486 0 0 $channel_id ||= 0
505 0 0 $channel_id ||= 0
517 0 0 $channel_id // '(undef)'
553 0 0 $channel // 0

or 3 conditions

line l !l&&r !l&&!r condition
432 0 0 0 $self->heartbeat_timeout || $method_frame->heartbeat