Condition Coverage

blib/lib/Sys/Info/Driver/Linux/OS.pm
Criterion Covered Total %
condition 5 24 20.8


and 3 conditions

line !l l&&!r l&&r condition
103 0 9 0 defined $id and defined $gid
104 0 9 0 $id == 0 && $gid == 0 && $name eq 'root'
191 0 0 0 -e $cmd and -x _

or 2 conditions

line l !l condition
78 2 0 $self->slurp({cpuinfo => '/proc/cpuinfo', fstab => '/etc/fstab', issue => '/etc/issue', loadavg => '/proc/loadavg', meminfo => '/proc/meminfo', resolv => '/etc/resolv.conf', swaps => '/proc/swaps', timezone => '/etc/timezone', uptime => '/proc/uptime', version => '/proc/version'}->{'uptime'}) || (return 0)
110 0 11 POSIX::getlogin() || (return)
213 1 0 $distro->manufacturer || ''

or 3 conditions

line l !l&&r !l&&!r condition
140 0 0 0 not @junk or @junk != 6
195 0 0 0 not @raw or @raw < 2
0 0 0 not @raw or @raw < 2 or not $raw[1]