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
230 2 3 2 $prof and $prof =~ /Number of (?:Processors|CPUs): (\d+)/i
291 3 0 10 -f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo"
298 5 3 2 not @physical and @cores

or 2 conditions

line l !l condition
202 13 5 $name || ''
272 2 2 $ncpu || undef
303 5 3 keys %hash || undef

or 3 conditions

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