Branch Coverage

blib/lib/Power/Outlet/Shelly.pm
Criterion Covered Total %
branch 4 22 18.1


line true false branch
83 0 1 if @_
84 1 0 unless defined $self->{'style'}
100 0 1 if @_
101 1 0 unless defined $self->{'index'}
150 0 0 $self->_call('')->{'ison'} ? :
161 0 0 $self->_call('', 'turn', 'on')->{'ison'} ? :
172 0 0 $self->_call('', 'turn', 'off')->{'ison'} ? :
185 0 0 $self->_call('', 'turn', 'toggle')->{'ison'} ? :
201 0 0 $hash->{'ison'} ? :
0 0 $hash->{'timer_started'} > 0 ? :
223 0 0 unless ref $hash eq "HASH"