Condition Coverage

blib/lib/Sys/Info/Driver/Linux/OS/Distribution.pm
Criterion Covered Total %
condition 13 53 24.5


and 3 conditions

line !l l&&!r l&&r condition
102 0 0 0 -f $file and not -l $file
187 0 2 0 $version and not $version =~ /[0-9]/msx
198 2 0 0 $slot->{'use_codename_for_edition'} and $self->{'DISTRIB_CODENAME'}
214 0 0 2 -e {"cpuinfo" => "/proc/cpuinfo","fstab" => "/etc/fstab","issue" => "/etc/issue","loadavg" => "/proc/loadavg","meminfo" => "/proc/meminfo","resolv" => "/etc/resolv.conf","scaling_cur_freq" => "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq","swaps" => "/proc/swaps","timezone" => "/etc/localtime","timezone_old" => "/etc/timezone","uptime" => "/proc/uptime","version" => "/proc/version"}->{'version'} and -f _
314 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

or 2 conditions

line l !l condition
72 1 0 $Sys::Info::Driver::Linux::OS::Distribution::CONF{lc $self->raw_name} || (return)
168 2 0 $Sys::Info::Driver::Linux::OS::Distribution::CONF{$raw_name} || (return)
259 2 2 shift() || 'DISTRIB_ID'
311 0 0 $codename || ''

or 3 conditions

line l !l&&r !l&&!r condition
93 0 0 0 $self->_probe_release(\%DERIVED_RELEASE) || $self->_probe_release(\%ORIGINAL_RELEASE)
117 2 0 0 $dist_id or $self->name
140 2 0 0 $release || $vrelease
144 0 2 0 $vrelease || $release
152 0 2 0 $self->{'DISTRIB_NAME'} || do {
230 2 0 0 $str =~ /
239 0 0 2 not $distro or $distro =~ /\(gcc/msx
308 0 0 0 $rname || $distrib_id