Condition Coverage

blib/lib/Power/Outlet/MQTT.pm
Criterion Covered Total %
condition 0 32 0.0


and 3 conditions

line !l l&&!r l&&r condition
152 0 0 0 not $self->{'publish_topic'} and defined $self->device
168 0 0 0 not $self->{'publish_on'} and defined $self->publish_topic
184 0 0 0 not $self->{'publish_off'} and defined $self->publish_topic
200 0 0 0 not $self->{'publish_switch'} and defined $self->publish_topic
216 0 0 0 not $self->{'publish_query'} and defined $self->publish_topic
232 0 0 0 not $self->{'subscribe_topic'} and defined $self->device
392 0 0 0 !$error && ref $on eq 'Regexp' && $message =~ /$on/
0 0 0 !$error && ref $off eq 'Regexp' && $message =~ /$off/
0 0 0 !($error || ref $on) && $message eq $on
0 0 0 !($error || ref $off) && $message eq $off

or 2 conditions

line l !l condition
385 0 0 shift() || 1.5