Branch Coverage

blib/lib/Server/Module/Comparison.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
22 0 0 unless defined $extra_params
24 0 0 if ($filename eq '-') { }
40 1 0 if ($self->perl_path)
74 1 3 if ($identifier =~ m[docker://(.*)$]) { }
1 2 elsif ($identifier =~ m[ssh://(.*)$]) { }
1 1 elsif ($identifier =~ m[/]) { }
99 0 0 if ($type eq 'ssh') { }
0 0 elsif ($type eq 'docker') { }
121 1 0 if ($exit)
135 0 0 if ($module) { }
142 0 0 unless ($missing_module)
154 2 22 if ($version and $version eq 'undef')
176 12 2 if (exists $second->{$module}) { }
180 1 11 if ($v1 > $v2) { }
2 9 elsif ($v1 < $v2) { }
196 1 12 unless (exists $first->{$module})
214 2 1 if (%{$report->{'downgraded'};})
224 2 1 if (%{$report->{'removed'};})
234 2 1 if (%{$report->{'installed'};})
244 2 1 if (%{$report->{'updated'};})
254 1 2 unless (@lines)