Branch Coverage

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


line true false branch
168 0 3 if ($CONTROL ne $_CONTROLbyte)
171 3 0 if ($TIMING ne $_TIMINGbyte)
308 10 0 if ($ch0 != 0)
313 6 4 if ($ratio <= 0.52) { }
0 4 elsif ($ratio <= 0.65) { }
0 4 elsif ($ratio <= 0.8) { }
4 0 elsif ($ratio <= 1.3) { }
326 1 0 $msec == 101 ? :
9 1 $msec == 402 ? :
330 0 10 if ($data0 == $saturation or $data1 == $saturation)
336 6 4 if ($_agc_enabled)
337 5 1 if ($gain == 1 and $data0 < 2048 and $data1 < 2048) { }
339 1 4 if $_smallcount >= 4
345 1 0 if ($gain == 16 and $data0 > 32768 || $data1 > 32768)
350 0 10 unless wantarray