Branch Coverage

blib/lib/Device/Chip/TSL256x.pm
Criterion Covered Total %
branch 20 30 66.6


line true false branch
167 0 3 if ($CONTROL ne $_CONTROLbyte)
170 3 0 if ($TIMING ne $_TIMINGbyte)
307 10 0 if ($ch0 != 0)
312 6 4 if ($ratio <= 0.52) { }
0 4 elsif ($ratio <= 0.65) { }
0 4 elsif ($ratio <= 0.8) { }
4 0 elsif ($ratio <= 1.3) { }
325 1 0 $msec == 101 ? :
9 1 $msec == 402 ? :
329 0 10 if ($data0 == $saturation or $data1 == $saturation)
335 6 4 if ($_agc_enabled)
336 5 1 if ($gain == 1 and $data0 < 2048 and $data1 < 2048) { }
338 1 4 if $_smallcount >= 4
344 1 0 if ($gain == 16 and $data0 > 32768 || $data1 > 32768)
349 0 10 unless wantarray