Branch Coverage

blib/lib/Pinto/Schema/Result/Stack.pm
Criterion Covered Total %
branch 33 62 53.2


line true false branch
160 0 101 unless my $target = $args{'target'}
161 0 4 if $cache and exists $cache->{$target}
164 5 96 if (itis($target, 'Pinto::Target::Distribution')) { }
96 0 elsif (itis($target, 'Pinto::Target::Package')) { }
169 3 2 unless my $reg = $self->head->search_related('registrations', $where, $attrs)->first
177 66 30 unless my $reg = $self->head->find_related('registrations', $where, $attrs)
178 4 26 unless $target->is_satisfied_by($reg->package->version)
182 4 24 if $cache
218 0 3 unless -e $orig_dir
222 1 2 if -e $new_dir and lc $new_dir ne lc $orig_dir
226 0 2 unless File::Copy::move($orig_dir, $new_dir)
239 0 2 unless $stack_dir->rmtree
296 2 0 if $self->is_default
308 1 2 if $self->is_default
320 0 6 if $self->is_locked
334 0 2 unless $self->is_locked
383 0 151 unless $args{'message'} or $self->head->message
402 0 0 if $self->head->stacks->count > 1
454 7 223 if $self->is_locked
517 0 4 if $prereq->is_test or $prereq->is_develop
518 0 4 if $prereq->is_core('in', $tpv) or $prereq->is_perl
520 0 4 unless my $prereq_dist = $self->get_distribution(%args)
533 0 114 if $self->is_default
552 0 2 unless $self->is_default
654 267 1 if (defined $value and length "$value") { }
710 0 0 unless itis($stack_a, $pkg) and itis($stack_b, $pkg)
713 0 0 if $stack_a->id == $stack_b->id
726 0 0 unless itis($stack_a, $pkg) and itis($stack_b, $pkg)
729 0 0 if $stack_a->id == $stack_b->id
743 0 0 $self->is_default ? :
744 0 0 $self->is_locked ? :