Branch Coverage

blib/lib/Sys/Detect/Virtualization.pm
Criterion Covered Total %
branch 16 46 34.7


line true false branch
112 1 3 unless $^O
117 1 2 if ($local_err =~ m[Can't locate Sys/Detect/Virtualization/.*?\.pm]) { }
0 2 elsif ($local_err) { }
125 0 2 exists $$extra_args{'verbose'} ? :
126 0 2 exists $$extra_args{'ignore_host'} ? :
153 0 0 unless ($guesses)
158 0 0 unless $$guesses{$b} <=> $$guesses{$a}
171 0 0 if $$self{'verbose'}
174 0 0 unless ($found and scalar @$found)
175 0 0 if ($@)
176 0 0 if $$self{'verbose'}
178 0 0 if $$self{'verbose'}
184 0 0 if $$self{'verbose'}
190 0 0 if (exists $guesses{$host_type})
195 0 0 if ($$self{'ignore_host'})
260 48 0 unless (grep {$_ eq $path;} @paths)
266 0 12 if (not defined $cmd or $cmd eq '')
291 10 13105 if ($line =~ /$pattern/)
316 0 8 unless open my $fh, "$command 2>/dev/null |"
344 3 1 unless (open $fh, "<$filename")
345 0 3 if $$self{'verbose'}
350 1 0 if ($result)
374 0 0 if (-e $path)