Branch Coverage

blib/lib/HiPi/Interface/HobbyTronicsBackpackV2.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
28 0 0 if (defined $userparams{'devicetype'} and not defined $userparams{'backend'})
34 0 0 $pi->board_type == 1 ? :
68 0 0 unless (defined $params{'device'})
69 0 0 if (lc $params{'backend'} eq 'serialrx') { }
0 0 elsif ($params{'backend'} eq 'bcm2835') { }
0 0 elsif ($params{'backend'} =~ /^(i2c|smbus)$/i) { }
70 0 0 unless $params{'devicename'}
82 0 0 unless $params{'devicename'}
83 0 0 unless defined $params{'address'}
87 0 0 $params{'devicename'} eq '/dev/i2c-0' ? :
92 0 0 unless $params{'devicename'}
93 0 0 unless defined $params{'address'}
121 0 0 if ($self->backend eq 'serialrx') { }
123 0 0 if ($command == 1) { }
135 0 0 if ($command == 1) { }
143 0 0 if @params
151 0 0 if $brightness < 0
152 0 0 if $brightness > 100
157 0 0 unless $self->backlightcontrol
159 0 0 if ($brightness < 0) { }
0 0 elsif ($brightness >= 250) { }
172 0 0 unless $self->backend eq 'serialrx'
176 0 0 if ($baud == 2400) { }
0 0 elsif ($baud == 4800) { }
0 0 elsif ($baud == 9600) { }
0 0 elsif ($baud == 14400) { }
0 0 elsif ($baud == 19200) { }
0 0 elsif ($baud == 28800) { }
0 0 elsif ($baud == 57600) { }
0 0 elsif ($baud == 115200) { }
207 0 0 if ($self->backend eq 'serialrx')
211 0 0 if ($newaddress < 1 or $newaddress > 127)