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
101 0 0 9 defined $id and defined $gid
102 0 9 0 $id == 0 && $gid == 0 && $name eq 'root'
189 0 0 0 -e $cmd and -x _

or 2 conditions

line l !l condition
76 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)
108 0 11 POSIX::getlogin() || (return)
211 1 0 $distro->manufacturer || ''

or 3 conditions

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