Branch Coverage

blib/lib/HiPi/Energenie.pm
Criterion Covered Total %
branch 0 48 0.0


line true false branch
62 0 0 unless (defined $params{'device'})
64 0 0 if ($params{'backend'} eq 'ENER314_RT') { }
0 0 elsif ($params{'backend'} eq 'ENER314') { }
92 0 0 unless $socket =~ /^1|2|3|4$/
100 0 0 unless $socket =~ /^0|1|2|3|4$/
109 0 0 if $self->backend ne 'ENER314_RT'
110 0 0 unless $socket =~ /^0|1|2|3|4$/
111 0 0 $offon ? :
127 0 0 unless $self->can_rx
143 0 0 if ($timeout)
149 0 0 if ($command eq 'join')
153 0 0 if ($command eq 'switch')
180 0 0 if ($command eq 'query')
191 0 0 if ($timeout and $timeout < time)
200 0 0 if ($msg)
202 0 0 unless $msg->is_decoded
204 0 0 if ($msg->ok) { }
211 0 0 if ($state == 3 and $msg->has_join_cmd) { }
0 0 elsif ($state == 4 and $msg->has_switch_state) { }
0 0 elsif ($state == 5) { }
235 0 0 if (exists $waitkeys->{$sensorkey})
236 0 0 if ($waitkeys->{$sensorkey} == $msg->switch_state)
247 0 0 if (exists $waitkeys->{$sensorkey})
259 0 0 if ($resendmessage)