Condition Coverage

blib/lib/UPS/Nut.pm
Criterion Covered Total %
condition 0 52 0.0


and 3 conditions

line !l l&&!r l&&r condition
106 0 0 0 defined $user and defined $pass
109 0 0 0 defined $ans and $ans =~ /^OK/
112 0 0 0 defined $ans and $ans =~ /^OK/
119 0 0 0 defined $ans and $ans =~ /^OK/
151 0 0 0 defined $user and defined $pass
154 0 0 0 defined $ans and $ans =~ /^OK/
157 0 0 0 defined $ans and $ans =~ /^OK/
283 0 0 0 $IO::Socket::{'has_error'} and $select->has_error(0)
284 0 0 0 $IO::Socket::{'has_exception'} and $select->has_exception(0)

or 2 conditions

line l !l condition
193 0 0 $arg{'HOST'} || 'localhost'
194 0 0 $arg{'PORT'} || '3493'
195 0 0 $arg{'PROTO'} || 'tcp'
196 0 0 $arg{'USERNAME'} || undef
197 0 0 $arg{'PASSWORD'} || undef
198 0 0 $arg{'LOGIN'} || 0
200 0 0 $arg{'NAME'} || 'default'
201 0 0 $arg{'TIMEOUT'} || 30
202 0 0 $arg{'DEBUG'} || 0
203 0 0 $arg{'DEBUGOUT'} || undef
767 0 0 shift() || 'UPS::Nut'

or 3 conditions

line l !l&&r !l&&!r condition
35 0 0 0 ref $proto || $proto