Branch Coverage

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


line true false branch
270 0 5 $^O =~ /^mswin/i ? :
272 0 0 $^O =~ /^darwen/i ? :
274 5 0 $^O =~ /^linux/i ? :
276 0 0 !($^O =~ /^mswin|linux|darwen/i) ? :
278 0 0 $^O =~ /^linux/i ? :
316 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) { }
334 5 0 if (os_is_linux())
339 5 0 if ($output)
341 1120 1035 if ($_ =~ /^([^\s]+)\s*:\s(.+)$/)
347 0 5 -e '/proc/device-tree/soc/ranges' ? :
348 0 5 if ($hasdevicetree)
352 0 0 if $bname
356 0 5 $_cpuinfostash{'Hardware'} ? :
357 0 5 $_cpuinfostash{'Serial'} ? :
358 0 5 $hardware eq 'BCM2708' ? :
359 5 0 $board_type == 3 ? :
360 0 5 $_cpuinfostash{'Revision'} ? :
366 5 0 if ($rev =~ /(beta|unknown|unknownex)$/) { }
367 5 0 exists $_revstash{$rev} ? :
378 0 0 if ($schemenewt) { }
394 0 0 if $device_tree_boardname
402 0 0 $schemetype == 4 ? :
403 0 0 $schemetype == 8 || $schemetype == 10 || $schemetype == 13 || $schemetype == 14 || $schemetype == 16 ? :
404 0 0 $schemetype == 17 ? :
408 0 0 exists $_revstash{$rev} ? :
417 0 5 if (os_is_windows()) { }
429 0 5 $_config->{'processor'} eq 'BCM2711' ? :
442 0 0 if ($type == 1) { }
0 0 elsif ($type == 2) { }
468 0 0 has_device_tree() ? :
471 0 0 $israspberry ? :
472 0 0 $israspberry2 ? :
473 0 0 $israspberry3 ? :
474 0 0 $israspberry4 ? :