Branch Coverage

blib/lib/Power/Outlet/SonoffDiy.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
194 0 0 unless $switch =~ /\A(|ON|OFF)\Z/
196 0 0 $switch ? :
200 0 0 $switch ? :
210 0 0 unless ref $hash eq "HASH"
212 0 0 if ($error_code)
217 0 0 unless ($switch)
218 0 0 unless my $data = $hash->{'data'}
220 0 0 unless ref $data eq "HASH"
222 0 0 if $error
223 0 0 unless ref $data eq "HASH"
224 0 0 unless $switch = $data->{'switch'}
225 0 0 unless $switch =~ /\A(on|off)\Z/i