Branch Coverage

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


line true false branch
31 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'}
85 0 3 @args % 2 ? :
86 2 1 $opt{'long'} ? :
87 1 2 $opt{'edition'} ? :
96 0 9 if defined &Sys::Info::EMULATE
100 0 9 if $@
101 0 9 unless defined $id and defined $gid
107 0 11 @args % 2 ? :
109 0 0 $opt{'real'} ? :
110 0 0 if $opt{'real'}
121 2 4 if ($line =~ /\A domain \s+ (.*) \z/mosx)
136 1 0 if $line =~ / \A \# /msx
138 0 0 if not @junk or @junk != 6
139 0 0 if lc $junk[2] eq 'swap'
141 0 0 unless $self->{'current_dir'} =~ /\Q$re\E/imsx
145 0 1 if @fstab > 1
150 0 1 $attr ? :
154 1 0 +(shift())->uname->{'machine'} =~ /64/msx ? :
189 0 0 unless -e $cmd and -x _
191 0 0 unless $raw
193 0 0 if not @raw or @raw < 2 or not $raw[1]
194 0 0 if ($raw[1] =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/msx)
202 6 1 if $self->{'OSVERSION'}
214 0 1 $edition ? :
1 0 defined $build ? :
1 0 defined $build_date ? :