Branch Coverage

blib/lib/System/Info/Darwin.pm
Criterion Covered Total %
branch 10 16 62.5


line true false branch
30 0 3 unless my $system_profiler = __get_system_profiler()
34 0 3 if (my $kv = $system_profiler->{'system version'})
43 2 1 if $system_profiler->{'total number of cores'}
47 3 0 if $system_profiler->{'cpu type'}
52 0 3 if $scl->{'machdep.cpu.core_count'}
67 3 0 -x '/sbin/sysctl' ? :
77 0 3 unless my $system_profiler_output = do { local $^W = 0; `/usr/sbin/system_profiler -detailLevel mini SPHardwareDataType SPSoftwareDataType 2>&1` }
108 12 6 if exists $system_profiler{$newkey}