Branch Coverage

blib/lib/Pcore/Dist.pm
Criterion Covered Total %
branch 7 54 12.9


line true false branch
138 5 0 unless ref $path
140 5 0 unless ($self->dir_is_dist_root($path))
144 5 0 if $self->dir_is_dist_root($path)
150 5 0 if (defined $path) { }
159 5 5 -f $path . '/share/dist.perl' ? :
168 0 0 if ($self->is_cpan_dist) { }
0 0 elsif (-f $self->root . 'lib/' . $module_name) { }
180 0 0 unless $module
190 0 0 if (-f $self->share_dir . 'docker.json')
198 0 5 if (-f $self->share_dir . 'par.ini')
214 0 0 if $self->is_cpan_dist
236 0 0 if (not $self->is_cpan_dist and $self->scm) { }
0 0 elsif (-f $self->share_dir . 'dist-id.json') { }
237 0 0 if (my $scm_id = $self->scm->scm_id)
241 0 0 if ($$id{'release'} and defined $$id{'release_distance'} and $$id{'release_distance'} == 1)
242 0 0 if $$id{'desc'} =~ /added tag.+$$id{'release'}/imsu
250 0 0 if defined $$id{'date'}
256 0 0 if $$id{'release_distance'}
266 0 0 if defined $ver
273 0 0 if (not $self->is_cpan_dist and $self->scm and my $scm_is_commited = $self->scm->scm_is_commited)
281 0 0 if (not $self->is_cpan_dist and $self->scm and my $scm_releases = $self->scm->scm_releases)
291 0 0 if $self->has_module
311 0 0 $self->id->{'tags'} ? :
313 0 0 $is_commited ? :
317 0 0 if ($self->docker_cfg and -f $self->root . 'Dockerfile') { }
327 0 0 unless $$docker{'repo_namespace'} and $$docker{'repo_name'}
333 0 0 if ($$dockerfile =~ /^FROM\s+([^:]+):?(.*?)$/msu) { }