Branch Coverage

blib/lib/HiPi/Interface/TMP102.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
49 0 0 $pi->board_type == 1 ? :
61 0 0 if ($params{'busmode'})
65 0 0 unless (defined $params{'device'})
66 0 0 if ($params{'backend'} eq 'bcm2835') { }
70 0 0 $params{'devicename'} eq '/dev/i2c-0' ? :
104 0 0 if (defined $newmode)
105 0 0 $newmode ? :
112 0 0 $cnf[0] & 1 ? :
118 0 0 if (defined $newmode)
119 0 0 $newmode ? :
126 0 0 $cnf[0] & 2 ? :
132 0 0 if (defined $newpol)
133 0 0 $newpol ? :
140 0 0 $cnf[0] & 4 ? :
149 0 0 if (defined $newrate and $newrate >= 0 and $newrate <= 3)
172 0 0 if ($newmode)
180 0 0 $cnf[0] & 128 ? :
186 0 0 if (defined $newmode)
187 0 0 $newmode ? :
199 0 0 if ($rate == 0) { }
0 0 elsif ($rate == 1) { }
0 0 elsif ($rate == 2) { }
0 0 elsif ($rate == 2) { }
215 0 0 $cnf[1] & 16 ? :
222 0 0 $cnf[1] & 32 ? :
231 0 0 if (defined $newrate and $newrate >= 0 and $newrate <= 3)
245 0 0 $self->config_bytes->[1] & 16 ? :
249 0 0 if ($bytes[0] & 128) { }
260 0 0 $self->config_bytes->[1] & 16 ? :
270 0 0 if ($negative)
284 0 0 if (defined $newlimit)
292 0 0 if (defined $newlimit)
302 0 0 if ($self->shutdown_mode)