Branch Coverage

blib/lib/Sys/Info/Driver/Linux/OS.pm
Criterion Covered Total %
branch 21 52 40.3


line true false branch
33 0 2 unless -e {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'}->{'timezone'}
87 0 3 @args % 2 ? :
88 2 1 $opt{'long'} ? :
89 1 2 $opt{'edition'} ? :
98 0 9 if defined &Sys::Info::EMULATE
102 0 9 if $@
103 0 9 unless defined $id and defined $gid
109 0 11 @args % 2 ? :
111 0 0 $opt{'real'} ? :
112 0 0 if $opt{'real'}
123 2 4 if ($line =~ /\A domain \s+ (.*) \z/mosx)
138 1 0 if $line =~ / \A \# /msx
140 0 0 if not @junk or @junk != 6
141 0 0 if lc $junk[2] eq 'swap'
143 0 0 unless $$self{'current_dir'} =~ /\Q$re\E/imsx
147 0 1 if @fstab > 1
152 0 1 $attr ? :
156 1 0 (shift())->uname->{'machine'} =~ /64/msx ? :
191 0 0 unless -e $cmd and -x _
193 0 0 unless $raw
195 0 0 if not @raw or @raw < 2 or not $raw[1]
196 0 0 if ($raw[1] =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/msx)
204 6 1 if $$self{'OSVERSION'}
215 0 1 $edition ? :
1 0 defined $build ? :
1 0 defined $build_date ? :