blib/lib/Sys/Info/Driver/Linux/OS/Distribution.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 47 | 21.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
102 | 0 | 0 | 0 | -f $file and not -l $file |
153 | 0 | 2 | 0 | $version and not $version =~ /[0-9]/msx |
164 | 2 | 0 | 0 | $slot->{'use_codename_for_edition'} and $self->{'DISTRIB_CODENAME'} |
180 | 0 | 0 | 2 | -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'}->{'version'} and -f _ |
280 | 0 | 0 | 0 | $self->{'DISTRIB_ID'} and $self->{'DISTRIB_ID'} eq 'redhat' |
0 | 0 | 0 | $self->{'DISTRIB_ID'} and $self->{'DISTRIB_ID'} eq 'redhat' and $self->{'DISTRIB_NAME'} | |
0 | 0 | 0 | $self->{'DISTRIB_ID'} and $self->{'DISTRIB_ID'} eq 'redhat' and $self->{'DISTRIB_NAME'} and index($self->{'DISTRIB_NAME'}, 'CentOS') != -1 |
line | l | !l | condition |
---|---|---|---|
72 | 1 | 0 | $Sys::Info::Driver::Linux::OS::Distribution::CONF{lc $self->raw_name} || (return) |
149 | 2 | 0 | $Sys::Info::Driver::Linux::OS::Distribution::CONF{$raw_name} || (return) |
225 | 2 | 2 | shift() || 'DISTRIB_ID' |
277 | 0 | 0 | $codename || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
93 | 0 | 0 | 0 | $self->_probe_release(\%DERIVED_RELEASE) || $self->_probe_release(\%ORIGINAL_RELEASE) |
117 | 0 | 0 | 0 | $self->{'DISTRIB_ID'} or $self->name |
133 | 0 | 2 | 0 | $self->{'DISTRIB_NAME'} || do { my $slot = $Sys::Info::Driver::Linux::OS::Distribution::CONF{$dn}; exists $slot->{'name'} ? $slot->{'name'} : ucfirst $dn } |
196 | 2 | 0 | 0 | $str =~ / \A Linux \s+ version \s (.+?) \s [(] .+? \@ .+? [)] (.*?) \z /imsx or $str =~ / \A linux \s+ [a-zA-Z0-9.]+ \s+ ([a-zA-Z0-9.]+)? /imsx |
205 | 0 | 2 | 0 | not $distro or $distro =~ /\(gcc/msx |
274 | 0 | 0 | 0 | $rname || $distrib_id |