Branch Coverage

blib/lib/HiPi/RaspberryPi.pm
Criterion Covered Total %
branch 17 74 22.9


line true false branch
279 0 5 $^O =~ /^mswin/i ? :
281 0 0 $^O =~ /^darwen/i ? :
283 5 0 $^O =~ /^linux/i ? :
285 0 0 !($^O =~ /^mswin|linux|darwen/i) ? :
287 0 0 $^O =~ /^linux/i ? :
327 0 0 if ($_config->{'board_type'} == $btype1) { }
0 0 elsif ($_config->{'board_type'} == $btype2) { }
0 0 elsif ($_config->{'board_type'} == $btype3) { }
0 0 elsif ($_config->{'board_type'} == $btype4) { }
345 5 0 if (os_is_linux())
350 5 0 if ($output)
352 1120 1035 if ($_ =~ /^([^\s]+)\s*:\s(.+)$/)
358 0 5 -e '/proc/device-tree/soc/ranges' ? :
359 0 5 if ($hasdevicetree)
363 0 0 if $bname
367 0 5 $_cpuinfostash{'Hardware'} ? :
368 0 5 $_cpuinfostash{'Serial'} ? :
369 0 5 $hardware eq 'BCM2708' ? :
370 5 0 $board_type == 3 ? :
371 0 5 $_cpuinfostash{'Revision'} ? :
377 5 0 if ($rev =~ /(beta|unknown|unknownex)$/) { }
378 5 0 exists $_revstash{$rev} ? :
389 0 0 if ($schemenewt) { }
405 0 0 if $device_tree_boardname
413 0 0 $schemetype == 4 ? :
414 0 0 $schemetype == 8 || $schemetype == 10 || $schemetype == 13 || $schemetype == 14 || $schemetype == 16 ? :
415 0 0 $schemetype == 17 ? :
419 0 0 exists $_revstash{$rev} ? :
428 0 5 if (os_is_windows()) { }
440 0 5 if ($_config->{'processor'} eq 'BCM2711') { }
461 0 0 if ($type == 1) { }
0 0 elsif ($type == 2) { }
487 0 0 has_device_tree() ? :
490 0 0 $israspberry ? :
491 0 0 $israspberry2 ? :
492 0 0 $israspberry3 ? :
493 0 0 $israspberry4 ? :