Condition Coverage

blib/lib/System/Info/Linux.pm
Criterion Covered Total %
condition 47 77 61.0


and 3 conditions

line !l l&&!r l&&r condition
125 103 2 1 $os{'DISTRIBVER'} and defined $os{'NETBSD_OFFICIAL_RELEASE'}
27 4 0 $os{'VERSION'} and $os{'NAME'}
27 4 0 $os{'VERSION'} and $os{'CODENAME'}
19 0 11 $os{'MAJORVERSION'} and defined $os{'MINORVERSION'}
17 2 0 $os{'DISTRIBVER'} and exists $os{'NETBSDSRCDIR'}
127 1 3 24 $os{'DISTRIB_CODENAME'} and not $distro =~ /\b$os{'DISTRIB_CODENAME'}\b/i
129 3 24 1 $os{'VERSION_ID'} and not $distro =~ /\b$os{'VERSION_ID'}\b/i
0 27 0 $os{'DISTRIB_RELEASE'} and not $distro =~ /\b$os{'DISTRIB_RELEASE'}\b/i
149 14 0 59 not @rv and defined $os{'NAME'}
14 46 13 not @rv and defined $os{'NAME'} and @rv = grep(/^$os{'NAME'} (?:(?:release|version)\s+)?$vid\./, sort(keys %os))
160 1 69 4 $os{'VERSION_ID'} and not $distro =~ /\b$os{'VERSION_ID'}\b/i
223 0 0 0 $distro and @vsn
227 11 0 1 @rel > 1 and $rel[0] =~ /^Enterprise Linux Enterprise/
11 0 1 @rel > 1 and $rel[0] =~ /^Enterprise Linux Enterprise/ and $rel[1] =~ /^Oracle Linux/

or 2 conditions

line l !l condition
98 119 15 $ENV{'SMOKE_USE_ETC'} || '/etc'
277 127 1 $self->count_unique_in_cpuinfo(qr/^physical id\s+:/) || 0
278 127 1 $self->count_unique_in_cpuinfo(qr/^core id\s+:/) || 0
279 128 0 $self->count_unique_in_cpuinfo(qr/^processor\s+:/) || 0

or 3 conditions

line l !l&&r !l&&!r condition
77 15 0 0 $os->{'DISTRIB_ID'} or $os->{'DISTRIB_RELEASE'}
0 0 0 $os->{'DISTRIB_ID'} or $os->{'DISTRIB_RELEASE'} or $os->{'DISTRIB_CODENAME'}
91 0 0 0 $map{$1} or $1
0 0 0 $$os{$map{$1} or $1} ||= $2
109 391 19 134 defined $distro or $df =~ /\blsb-/
175 0 11 0 -d "/usr/syno" or join($", @dist_file) =~ m[^\S*/VERSION$]
280 127 1 0 $n_phys_id || $n_core_id || $n_processor
352 2 1 0 $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')
446 2 0 0 $self->from_cpuinfo('vendor_id') || $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')