Condition Coverage

blib/lib/HiPi/Energenie/Command.pm
Criterion Covered Total %
condition 0 93 0.0


and 3 conditions

line !l l&&!r l&&r condition
235 0 0 0 exists $self->result->{'data'} and ref($self->result->{'data'})->isa('HiPi::RF::OpenThings::Message')
255 0 0 0 $self->result->{'command'} eq 'switch' and $self->result->{'option'} eq 'list'
0 0 0 $self->result->{'command'} eq 'switch' and $self->result->{'option'} ne 'list'
0 0 0 $self->result->{'command'} =~ /^adapter|monitor$/ and $self->result->{'option'} eq 'list'
0 0 0 $self->result->{'command'} =~ /^adapter|monitor$/ and $self->result->{'option'} ne 'list'
276 0 0 0 $data->{'spi_device'} and $data->{'can_rx'} eq 'YES'
277 0 0 0 $data->{'spi_device'} and $data->{'can_rx'} eq 'YES'
375 0 0 0 exists $self->result->{'data'} and ref($self->result->{'data'})->isa('HiPi::RF::OpenThings::Message')
476 0 0 0 $self->options->{'reset'} and $self->options->{'reset'} =~ /^\d+$/
712 0 0 0 $switch and $switch =~ /^1|2|3|4$/
785 0 0 0 $self->receiver and not $group
817 0 0 0 defined $switch and $switch =~ /^0|1|2|3|4$/
835 0 0 0 $self->options->{'on'} and $self->options->{'off'}
899 0 0 0 $switch and $switch =~ /^|1|2|3|4$/
952 0 0 0 $self->conf->{'switches'}{$switchname}{'switch'} == $switch and $self->conf->{'switches'}{$switchname}{'group'} == $group
1186 0 0 0 $self->options->{'on'} and $self->options->{'off'}

or 2 conditions

line l !l condition
1114 0 0 $result->{'catch_errorcode'} || 'ERROR_JOIN_FAILED'
1220 0 0 $result->{'catch_errorcode'} || 'ERROR_ADAPTER_FAILED'
1333 0 0 $self->conf->{'epoch'} || 1

or 3 conditions

line l !l&&r !l&&!r condition
172 0 0 0 length $command > 40 or not $command =~ /^[a-z]+$/
255 0 0 0 $self->result->{'errorcode'} ne 'ERROR_SUCCESS' or not $self->result->{'success'}
0 0 0 $self->result->{'command'} =~ /^pair|alias$/ or $self->result->{'command'} eq 'switch' and $self->result->{'option'} eq 'list'
0 0 0 $self->result->{'command'} eq 'join' or $self->result->{'command'} =~ /^adapter|monitor$/ and $self->result->{'option'} eq 'list'
399 0 0 0 $error //= $errorcode
410 0 0 0 $error //= $errorcode
527 0 0 0 $delete or $rename
574 0 0 0 $create or $rename
606 0 0 0 $delete or $create
743 0 0 0 $name ||= "${groupname}_switch_$switch"
826 0 0 0 $self->options->{'on'} or $self->options->{'off'}
1177 0 0 0 $self->options->{'on'} or $self->options->{'off'}
1309 0 0 0 $result->{'catch_errorcode'} || $alterror