Branch Coverage

blib/lib/MyCPAN/App/DPAN/Reporter/Minimal.pm
Criterion Covered Total %
branch 16 86 18.6


line true false branch
63 0 0 if ($self->get_config->organize_dists)
71 0 0 unless (defined $info)
79 0 0 unless open my $fh, '>', $out_path
84 0 0 unless $$info{'dist_info'}{'module_info'}
88 0 0 if eval { do { $version->can('numify') } }
90 0 0 unless (defined $$module{'primary_package'})
99 0 0 if $self->get_config->organize_dists
101 0 0 unless defined $dist_file
113 0 0 unless -e $out_path
156 0 0 unless (open my $fh, '<', $file)
164 0 0 if /^\s*#/
168 0 0 if $version eq 'undef'
170 0 0 unless (defined $package and length $package)
176 0 0 if ($self->get_config->organize_dists)
187 0 0 unless -e $dist_file
198 0 0 if ($self->skip_package($package))
213 0 0 unless defined $$s[1]
0 0 unless $$a[0] cmp $$b[0]
225 0 0 unless eval { do { $package_details->add_entry('package name', $package, 'version', $version, 'path', $path) } }
283 0 0 unless opendir my $dh, $report_dir
330 0 0 unless $self->get_config->exists('extra_reports_dir')
333 0 0 unless defined $dir
337 0 0 unless -d $dir
372 0 4 ref $d ? :
377 0 4 unless -d $index_dir
392 1 3 unless ($count > 0)
417 0 3 if -d $dpan_authors_id
422 3 0 unless ($self->get_config->i_ignore_errors_at_my_peril)
426 1 2 unless my $result = eval { do { $package_details->check_file($temp_file, $dpan_dir) } }
429 1 2 if (defined $at)
436 1 0 if (defined $error)
438 1 0 unless $MyCPAN::App::DPAN::Reporter::Minimal::logger->is_debug
439 1 0 if defined $error
448 1 1 unless (rename($temp_file, $packages_file))
471 1 0 if (not ref $at) { }
0 0 elsif (exists $$at{'missing_in_file'}) { }
0 0 elsif (exists $$at{'missing_in_repo'}) { }
479 0 0 if ($self->get_config->ignore_missing_dists) { }
491 0 0 if ($self->get_config->ignore_extra_dists) { }
586 0 0 if (-e $module_list_file)
626 0 0 if $@
629 0 0 if ($rc == 1) { }
0 0 elsif ($rc == 2) { }