Branch Coverage

blib/lib/Metabrik/System/Os.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
94 0 0 if ($arch eq 'amd64' or $arch eq 'x86_64') { }
0 0 elsif ($arch eq 'i386' or $arch eq 'i685') { }
115 0 0 if ($name eq "Linux")
116 0 0 unless my $ft = "Metabrik::File::Text"->new_from_brik_init($self)
121 0 0 if (-f '/etc/lsb-release') { }
0 0 elsif (-f '/etc/debian_version' and -f '/etc/os-release') { }
0 0 elsif (-f '/etc/centos-release') { }
0 0 elsif (-f '/etc/redhat-release') { }
0 0 elsif (-f '/etc/os-release') { }
0 0 elsif (-f '/etc/arch-release') { }
0 0 elsif (-f '/etc/manjaro-release') { }
0 0 elsif (-f '/etc/gentoo-release') { }
122 0 0 unless my $lines = $ft->read("/etc/lsb-release")
142 0 0 unless my $lines = $ft->read("/etc/os-release")
164 0 0 unless $lines = $ft->read("/etc/debian_version")
168 0 0 if (@$lines > 0)
227 0 0 unless $self->brik_help_run_undef_arg("is", $os)
231 0 0 unless my $name = $self->name
232 0 0 unless my $distrib = $self->distribution
233 0 0 if (exists $distrib->{'name'})
235 0 0 if ($this eq $os)
239 0 0 if (defined $name)
241 0 0 if ($this eq $os)
288 0 0 unless my $name = $self->name
289 0 0 unless my $distrib = $self->distribution
290 0 0 if (exists $distrib->{'name'})
294 0 0 if (defined $name)