Branch Coverage

blib/lib/System/Info/Darwin.pm
Criterion Covered Total %
branch 12 16 75.0


line true false branch
30 0 4 unless my $system_profiler = __get_system_profiler()
34 0 4 if (my $kv = $system_profiler->{'system version'})
40 3 1 if $system_profiler->{'total number of cores'}
48 3 1 if $system_profiler->{'cpu speed'}
71 4 0 -x '/sbin/sysctl' ? :
81 0 4 unless my $system_profiler_output = do { local $^W = 0; `/usr/sbin/system_profiler -detailLevel mini SPHardwareDataType SPSoftwareDataType 2>&1` }
111 15 9 if exists $system_profiler{$newkey}
120 3 1 if $system_profiler{'cpu speed'}