Condition Coverage

blib/lib/System/CPU.pm
Criterion Covered Total %
condition 23 27 85.1


and 3 conditions

line !l l&&!r l&&r condition
180 1 0 1 @out and $out[0] =~ /CPU:\s*(.*)/i
227 2 3 2 $prof and $prof =~ /Number of (?:Processors|CPUs): (\d+)/i
288 3 0 10 -f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo"
295 5 3 2 not @physical and @cores

or 2 conditions

line l !l condition
199 12 5 $name || ''
269 2 2 $ncpu || undef
300 5 3 keys %hash || undef

or 3 conditions

line l !l&&r !l&&!r condition
232 3 2 0 $cores ||= $cpus
301 5 3 0 &sum(values %hash) || $cpus
309 3 1 1 $arch || _uname_p()