Condition Coverage

lib/Beekeeper/MQTT.pm
Criterion Covered Total %
condition 13 38 34.2


and 3 conditions

line !l l&&!r l&&r condition
295 0 0 19 $timeout and not $self->{'timeout_tmr'}
1333 20 70 0 $qos and $on_puback
1348 0 89 1 defined $self->{'handle'}{'wbuf'} and length $self->{'handle'}{'wbuf'} > 0
1732 0 0 0 defined $self->{'handle'}{'wbuf'} and length $self->{'handle'}{'wbuf'} > 0

or 2 conditions

line l !l condition
305 19 0 $config->{'host'} || 'localhost'
311 0 19 $self->{'try_hosts'} ||= []
316 0 19 $config->{'tls'} || 0
587 0 19 $keep_alive || 0
798 0 13 $reason_code || 0
1340 0 0 $self->{'buffers'}{$buffer_id} ||= {}
1486 0 3 $args{'reason_code'} || 0
1524 0 0 $args{'reason_code'} || 0
1558 0 0 $args{'reason_code'} || 0
1592 0 0 $args{'reason_code'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
249 0 19 0 delete $args{'bus_role'} || $self->{'bus_id'}
317 19 0 0 $config->{'port'} || ($tls ? 8883 : 1883)