Branch Coverage

blib/lib/Dpkg/Deps/KnownFacts.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
87 9 0 if defined $arch
120 45 11 unless exists $self->{'pkg'}{$pkg}
129 0 11 unless (defined $a)
133 8 3 if (not defined $archqual) { }
1 2 elsif ($archqual eq 'any') { }
2 0 elsif ($archqual eq 'native') { }
134 3 5 if $ma eq 'foreign'
135 3 2 if $a eq $host_arch or $a eq 'all'
137 1 0 if $ma eq 'allowed'
139 1 1 if $ma eq 'foreign'
140 1 0 if $a eq $build_arch or $a eq 'all'
142 0 0 if $a eq $archqual
151 42 6 unless exists $self->{'virtualpkg'}{$pkg}
166 8 48 if ($p)
167 1 7 if (defined $dep->{'relation'}) { }
168 1 0 if (defined $p->{'version'}) { }
171 1 0 if &version_compare_relation($p->{'version'}, $dep->{'relation'}, $dep->{'version'})
181 1 5 if defined $virtpkg->{'relation'} and $virtpkg->{'relation'} ne '='
183 3 2 if (defined $dep->{'relation'}) { }
184 1 2 unless defined $virtpkg->{'version'}
187 1 1 if &version_compare_relation($virtpkg->{'version'}, $dep->{'relation'}, $dep->{'version'})
192 0 45 if $lackinfos