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 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'}
125 1 2 24 $os{'DISTRIB_CODENAME'} and not $distro =~ /\b$os{'DISTRIB_CODENAME'}\b/i
127 3 23 1 $os{'VERSION_ID'} and not $distro =~ /\b$os{'VERSION_ID'}\b/i
0 26 0 $os{'DISTRIB_RELEASE'} and not $distro =~ /\b$os{'DISTRIB_RELEASE'}\b/i
143 11 0 48 not @rv and defined $os{'NAME'}
11 35 13 not @rv and defined $os{'NAME'} and @rv = grep(/^$os{'NAME'} (?:(?:release|version)\s+)?$vid\./, sort(keys %os))
154 1 56 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 103 15 $ENV{'SMOKE_USE_ETC'} || '/etc'
271 111 1 $self->count_unique_in_cpuinfo(qr/^physical id\s+:/) || 0
272 111 1 $self->count_unique_in_cpuinfo(qr/^core id\s+:/) || 0
273 112 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 340 17 118 defined $distro or $df =~ /\blsb-/
169 0 11 0 -d "/usr/syno" or join($", @dist_file) =~ m[^\S*/VERSION$]
274 111 1 0 $n_phys_id || $n_core_id || $n_processor
346 2 1 0 $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')
440 2 0 0 $self->from_cpuinfo('vendor_id') || $self->from_cpuinfo('Processor') || $self->from_cpuinfo('Model[_ ]name')