Condition Coverage

blib/lib/Device/Inverter/Aurora.pm
Criterion Covered Total %
condition 30 91 32.9


and 2 conditions

line l !l condition
138 0 0 $self->_error('Failed to write all bytes') and next
143 0 0 $self->_error('Failed to read in all bytes') and next
150 0 0 $self->_error('CRC failure') and next

and 3 conditions

line !l l&&!r l&&r condition
133 25 0 0 $try > 1 and $$self{'backoff'}
138 0 0 25 defined $sent and $sent == 10
143 0 0 25 defined $read and length $read == 8
162 33 0 3 ref $matrix eq 'HASH' and defined $$matrix{$input}
0 0 33 ref $matrix eq 'ARRAY' and defined $$matrix[$input]
210 0 0 1 @reply and $self->transmissionCheck($reply[0])
222 0 0 1 @reply and $self->transmissionCheck($reply[0])
239 0 0 1 @reply and $self->transmissionCheck($reply[0])
266 0 0 1 @reply and $self->transmissionCheck($reply[0])
282 0 0 1 @reply and $self->transmissionCheck($reply[0])
297 0 0 1 @reply and $self->transmissionCheck($reply[0])
308 0 0 1 @reply and $self->transmissionCheck($reply[0])
319 0 0 6 @reply and $self->transmissionCheck($reply[0])
339 0 0 10 @reply and $self->transmissionCheck($reply[0])
363 0 0 0 @reply and $self->transmissionCheck($reply[0])
376 0 0 0 @reply and $self->transmissionCheck($reply[0])
394 0 0 0 @reply and $self->transmissionCheck($reply[0])
404 0 0 0 @reply and $self->transmissionCheck($reply[0])

or 2 conditions

line l !l condition
64 0 1 $args{'debug'} || 0
65 0 1 $args{'retries'} || 0
66 0 1 $args{'backoff'} || 1
67 0 1 $args{'address'} || 2
68 0 1 $args{'port'} || '/dev/ttyS0'
69 0 1 $args{'raw'} || 0
70 0 1 $args{'quiet'} || 0
82 0 1 $args{'baudrate'} || 19200
83 0 1 $args{'parity'} || 'none'
84 0 1 $args{'databits'} || 8
85 0 1 $args{'stopbits'} || 1
86 0 1 $args{'datatype'} || 'raw'
87 0 1 $args{'handshake'} || 'none'
88 0 1 $args{'read_const_time'} || 150

or 3 conditions

line l !l&&r !l&&!r condition
59 0 1 0 $caller_is_ref || $caller