Branch Coverage

blib/lib/Pinto/Schema/Result/Distribution.pm
Criterion Covered Total %
branch 32 58 55.1


line true false branch
132 0 218 unless ($pkg->can_index)
141 179 39 if (not defined $incumbent) { }
38 1 elsif (not $can_intermingle) { }
151 13 25 if ($dist->id == $self->id and $incumbent->is_pinned == $pin)
160 4 22 if ($incumbent_pkg == $pkg)
162 4 0 if $pin and not $incumbent->is_pinned
167 2 20 if ($incumbent->is_pinned)
170 0 2 $force ? :
174 1 19 if $incumbent_pkg > $pkg
177 1 19 if ($can_intermingle) { }
192 170 13 if $did_register
213 0 27 if ($reg->is_pinned and not $force)
223 0 21 if $conflicts
227 21 0 if $did_unregister
246 0 7 unless $regs->count
268 0 3 unless $regs->count
314 264 105 unless @base
330 1 1 if $self->is_local
354 0 0 unless my $pkg = $self->find_related('packages', $where, $attrs)
356 0 0 if (my $stk_name = $args{'stack'})
357 0 0 $pkg->registration('stack', $stk_name) ? :
394 0 0 if $pkg->can_index and $pkg->name eq $dist_name
399 0 0 if $pkg->can_index
403 0 0 if @pkgs
439 0 2 unless itis($dist_a, $pkg) and itis($dist_b, $pkg)
442 0 2 if $dist_a->id == $dist_b->id
458 0 1 $self->is_devel ? :
459 0 0 $m ? :
463 1 0 $self->is_local ? :