Branch Coverage

blib/lib/Power/Outlet/Common.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
48 2 33 if ($action =~ /\A(?:1|ON)\Z/i) { }
3 30 elsif ($action =~ /\A(?:0|OFF)\Z/i) { }
4 26 elsif ($action =~ /\A(?:SWITCH|TOGGLE)\Z/i) { }
2 24 elsif ($action =~ /\A(?:CYCLE)\Z/i) { }
24 0 elsif ($action =~ /\A(?:QUERY)\Z/i) { }
110 14 0 $query eq 'ON' ? :
14 14 $query eq 'OFF' ? :
142 0 7 if @_
143 2 5 unless defined $self->{'cycle_duration'}
155 0 2 if @_
156 0 2 unless defined $self->{'name'}