Condition Coverage

blib/lib/System/Info/Linux.pm
Criterion Covered Total %
condition 44 74 59.4


and 3 conditions

line !l l&&!r l&&r condition
123 25 4 0 $os{'VERSION'} and $os{'NAME'}
25 4 0 $os{'VERSION'} and $os{'CODENAME'}
19 0 9 $os{'MAJORVERSION'} and defined $os{'MINORVERSION'}
17 2 0 $os{'DISTRIBVER'} and exists $os{'NETBSDSRCDIR'}
125 1 2 23 $os{'DISTRIB_CODENAME'} and not $distro =~ /\b$os{'DISTRIB_CODENAME'}\b/i
127 3 22 1 $os{'VERSION_ID'} and not $distro =~ /\b$os{'VERSION_ID'}\b/i
0 25 0 $os{'DISTRIB_RELEASE'} and not $distro =~ /\b$os{'DISTRIB_RELEASE'}\b/i
143 10 0 41 not @rv and defined $os{'NAME'}
10 28 13 not @rv and defined $os{'NAME'} and @rv = grep(/^$os{'NAME'} (?:(?:release|version)\s+)?$vid\./, sort(keys %os))
154 1 48 3 $os{'VERSION_ID'} and not $distro =~ /\b$os{'VERSION_ID'}\b/i
217 0 0 0 $distro and @vsn
221 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
96 92 15 $ENV{'SMOKE_USE_ETC'} || '/etc'
271 100 1 $self->count_unique_in_cpuinfo(qr/^physical id\s+:/) || 0
272 100 1 $self->count_unique_in_cpuinfo(qr/^core id\s+:/) || 0
273 101 0 $self->count_unique_in_cpuinfo(qr/^processor\s+:/) || 0

or 3 conditions

line l !l&&r !l&&!r condition
75 15 0 0 $os->{'DISTRIB_ID'} or $os->{'DISTRIB_RELEASE'}
0 0 0 $os->{'DISTRIB_ID'} or $os->{'DISTRIB_RELEASE'} or $os->{'DISTRIB_CODENAME'}
89 0 0 0 $map{$1} or $1
0 0 0 $$os{$map{$1} or $1} ||= $2
107 304 16 107 defined $distro or $df =~ /\blsb-/
169 0 9 0 -d "/usr/syno" or join($", @dist_file) =~ m[^\S*/VERSION$]
274 100 1 0 $n_phys_id || $n_core_id || $n_processor
332 2 1 0 $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')
426 2 0 0 $self->from_cpuinfo('vendor_id') || $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')