Branch Coverage

blib/lib/Power/Outlet/Hue.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
49 0 0 if @_
50 0 0 unless defined $self->{'id'}
76 0 0 if @_
77 0 0 unless defined $self->{'resource'}
113 0 0 if @_
114 0 0 unless defined $self->{'username'}
147 0 0 defined $state ? :
148 0 0 defined $self->resource ? :
165 0 0 if (defined wantarray) { }
175 0 0 if (ref $res eq 'HASH') { }
0 0 elsif (ref $res eq 'ARRAY') { }
176 0 0 unless exists $res->{'state'}
177 0 0 unless ref $res->{'state'} eq "HASH"
178 0 0 unless exists $res->{'state'}{'on'}
180 0 0 $state ? :
183 0 0 if exists $hash->{'error'}
221 0 0 unless my $input = shift()
222 0 0 $input eq 'off' ? :
0 0 $input eq 'on' ? :
234 0 0 unless ref $array eq "ARRAY"
236 0 0 unless ref $hash eq "HASH"
237 0 0 if exists $hash->{'error'}
238 0 0 unless exists $hash->{'success'}
242 0 0 unless exists $success->{$key}
244 0 0 $state ? :