Condition Coverage

blib/lib/System/CPU.pm
Criterion Covered Total %
condition 20 24 83.3


and 3 conditions

line !l l&&!r l&&r condition
150 1 0 1 @out and $out[0] =~ /CPU:\s*(.*)/i
255 3 0 10 -f "/proc/cpuinfo" and open my $fh, "<", "/proc/cpuinfo"
262 5 3 2 not @physical and @cores

or 2 conditions

line l !l condition
169 11 5 $name || ''
236 2 2 $ncpu || undef
267 5 3 keys %hash || undef

or 3 conditions

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