Branch Coverage

blib/lib/HiPi/Energenie.pm
Criterion Covered Total %
branch 0 50 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 'RF69HW') { }
0 0 elsif ($params{'backend'} eq 'ENER314') { }
103 0 0 unless $socket =~ /^1|2|3|4$/
111 0 0 unless $socket =~ /^0|1|2|3|4$/
120 0 0 unless $self->backend =~ /^ENER314_RT|RF69HW$/
121 0 0 unless $socket =~ /^0|1|2|3|4$/
122 0 0 $offon ? :
138 0 0 unless $self->can_rx
154 0 0 if ($timeout)
160 0 0 if ($command eq 'join')
164 0 0 if ($command eq 'switch')
191 0 0 if ($command eq 'query')
202 0 0 if ($timeout and $timeout < time)
211 0 0 if ($msg)
213 0 0 unless $msg->is_decoded
215 0 0 if ($msg->ok) { }
222 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) { }
246 0 0 if (exists $waitkeys->{$sensorkey})
247 0 0 if ($waitkeys->{$sensorkey} == $msg->switch_state)
258 0 0 if (exists $waitkeys->{$sensorkey})
270 0 0 if ($resendmessage)