Condition Coverage

blib/lib/HealthCheck/Diagnostic/RabbitMQ.pm
Criterion Covered Total %
condition 40 44 90.9


and 3 conditions

line !l l&&!r l&&r condition
19 7 0 0 @params == 1 && (ref $params[0] || '') eq 'HASH'
48 7 4 2 ref $self and defined $self->{'queue'}
85 7 2 20 $rabbit_mq and do { local $@; eval { do { local $SIG{'__DIE__'}; $rabbit_mq->can($method) } } }
95 16 4 0 ref $self && exists $self->{'should_disconnect'}
175 10 2 2 defined $params{'listeners_max_critical'} and $params{'listeners_max_critical'} <= $listeners
8 2 2 defined $params{'listeners_min_critical'} and $params{'listeners_min_critical'} >= $listeners
7 2 1 defined $params{'listeners_max_warning'} and $params{'listeners_max_warning'} <= $listeners
6 2 1 defined $params{'listeners_min_warning'} and $params{'listeners_min_warning'} >= $listeners
208 4 2 10 $res{'status'} ne "CRITICAL" and defined $data->{'messages'}
210 6 2 2 defined $params{'messages_critical'} and $params{'messages_critical'} <= $messages
5 2 1 defined $params{'messages_warning'} and $params{'messages_warning'} <= $messages

or 2 conditions

line l !l condition
104 3 13 $decision_params{'channel'} //= 1

or 3 conditions

line l !l&&r !l&&!r condition
48 17 4 9 defined $params{'queue'} or ref $self and defined $self->{'queue'}
175 2 2 10 defined $params{'listeners_max_critical'} and $params{'listeners_max_critical'} <= $listeners or defined $params{'listeners_min_critical'} and $params{'listeners_min_critical'} >= $listeners
1 0 9 defined $params{'listeners_max_warning'} and $params{'listeners_max_warning'} <= $listeners or defined $params{'listeners_min_warning'} and $params{'listeners_min_warning'} >= $listeners