Branch Coverage

blib/lib/HiPi/Device/I2C.pm
Criterion Covered Total %
branch 0 118 0.0


line true false branch
50 0 0 unless opendir my $dh, '/dev'
61 0 0 if ($modvers == 2) { }
64 0 0 if (-e $sysfile0 and not -e $sysfile)
67 0 0 if (-e $sysfile) { }
76 0 0 if ($?)
86 0 0 $modvers == 2 ? :
91 0 0 if $modvers == 2
93 0 0 if ($?)
105 0 0 unless $newval =~ /^Y|N$/
106 0 0 if $modvers == 2
116 0 0 $pi->board_type == 1 ? :
129 0 0 unless my $fh = 'IO::File'->new($params{'devicename'}, 2, 0)
137 0 0 if $self->address
144 0 0 if ($self->fh)
162 0 0 if ($self->address)
173 0 0 unless my $fh = 'IO::File'->new($devicename, 2, 0)
195 0 0 if $start < 3
196 0 0 if $end > 119
197 0 0 if $end < $start
209 0 0 unless $checkaddress
211 0 0 unless @result
212 0 0 $result[0] == $checkaddress ? :
221 0 0 if ($self->busmode eq 'smbus') { }
230 0 0 if ($self->busmode eq 'smbus') { }
243 0 0 if ($modvers == 1)
244 0 0 if ($self->readmode == 2) { }
0 0 elsif ($self->readmode == 1) { }
246 0 0 if ($combined ne 'N')
252 0 0 if ($combined ne 'Y')
261 0 0 if ($self->busmode eq 'smbus') { }
0 0 elsif (defined $cmdval) { }
272 0 0 if $resetcombined
285 0 0 $byte & $checkbits ? :
297 0 0 if ($bitcount % 8)
320 0 0 if $result
335 0 0 if $result
336 0 0 $numbytes > 1 ? :
347 0 0 if $result
348 0 0 $numbytes > 1 ? :
359 0 0 if (@bytes == 1) { }
0 0 elsif (@bytes == 2) { }
373 0 0 if (@bytes == 1) { }
0 0 elsif (@bytes == 2) { }
386 0 0 if (not defined $cmdval) { }
0 0 elsif (not $numbytes or $numbytes <= 1) { }
398 0 0 if $result < 0
405 0 0 if $result < 0
412 0 0 if $result < 0
419 0 0 if $result < 0
426 0 0 if $result < 0
433 0 0 if $result < 0
440 0 0 if $result < 0
447 0 0 if $result < 0
454 0 0 if $result < 0
461 0 0 if $result < 0
468 0 0 unless @result
475 0 0 unless @result
482 0 0 if $result < 0
489 0 0 if $result < 0