Branch Coverage

blib/lib/App/PodLinkCheck.pm
Criterion Covered Total %
branch 32 158 20.2


line true false branch
35 0 0 unless ref $self
61 0 0 if ($self->{'verbose'} >= 2)
98 0 0 if (-d $filename) { }
196 0 0 if ($self->{'verbose'})
197 0 0 defined $to ? :
0 0 defined $section ? :
201 0 0 if ($type eq 'man')
202 0 0 unless ($self->manpage_is_known($to))
209 0 0 unless (defined $to)
210 0 0 if (defined $section and not $own_sections->{$section})
212 0 0 if (my $approximations = _section_approximations($section, $own_sections)) { }
223 0 0 if ($self->{'verbose'} >= 2)
236 0 0 unless (defined $podfile)
237 0 0 if (my $method = $self->_module_known_cpan($to))
238 0 0 if (defined $section and $section ne '')
249 0 0 if (not defined $podfile || defined $section and $self->manpage_is_known($to))
256 0 0 if (not defined $section and _is_one_word($to) and $own_sections->{$to})
260 0 0 if (defined $podfile) { }
270 0 0 unless (defined $podfile)
271 0 0 if ($own_sections->{$to})
280 0 0 if (defined $section and $section ne '')
282 0 0 unless ($podfile_sections->{$section})
283 0 0 if (my $approximations = _section_approximations($section, $podfile_sections)) { }
298 0 0 if ($self->{'verbose'} >= 2)
338 2 2 $1 eq '<' ? :
377 0 0 if ($self->$fullmethod($module))
397 1 0 unless ($self->{'verbose'})
403 1 0 if (not $CPAN::Config_loaded and 'CPAN::HandleConfig'->can('load'))
408 0 1 if ($self->{'verbose'})
416 0 1
417 0 0 if ($self->{'verbose'})
427 1 2 unless (defined $self->{'cpan_sqlite'})
430 1 0 if ($self->_CPAN_config($self->{'verbose'}))
433 0 1 if ($self->{'verbose'})
437 1 0 unless (eval {
438 0 1 if ($self->{'verbose'})
448 0 0 if ($self->{'verbose'})
452 0 0 unless (eval {
458 0 0 if ($self->{'verbose'})
473 0 0 unless (eval {
476 0 0 if ($self->{'verbose'})
492 1 2 unless (defined $use_CPAN)
495 1 0 if ($self->_CPAN_config($self->{'verbose'}))
497 0 1 if ($self->{'verbose'})
502 0 1 if (defined $CPAN::META and %$CPAN::META) { }
0 1 elsif (not 'CPAN::Index'->can('read_metadata_cache')) { }
505 0 0 if ($self->{'verbose'})
513 0 0 if (defined $CPAN::META and %$CPAN::META) { }
516 0 0 if ($self->{'verbose'})
523 1 0
524 0 1 if ($self->{'verbose'})
539 1 2 unless (defined $self->{'cpanplus'})
540 0 1 if ($self->{'verbose'})
544 1 0 unless (eval {
548 0 1 if ($self->{'verbose'})
570 0 0 unless (eval {
571 0 0 if ($self->{'verbose'})
588 0 0 unless (open $fh, '<', $filename)
589 0 0 unless ($self->{'cpanminus-warned'}{$filename}++)
590 0 0 if ($self->{'verbose'})
598 0 0 unless ($self->{'cpanminus'}{$filename}++)
599 0 0 if ($self->{'verbose'})
606 0 0 if (_packages_details_bsearch($fh, $module))
628 0 3 unless (defined $home)
658 0 0 unless defined $pos
661 0 0 if $line =~ /^\Q$module\E /
662 0 0 unless $line =~ /^\Q$module\E /i
671 0 0 if ($line =~ /^([^ ]*[^ :]) /) { }
687 0 0 if (-e $filename)
704 0 0 if (defined $self->{'PATH'}) { }
719 2 4 if ($name =~ s/\s*\((.+)\)$//)
725 0 6 if (defined $$r)
731 0 6 $self->_man_has_location_option ? :
752 0 1 if ($self->{'verbose'} >= 2)
753 0 0 if ($ret) { }
768 0 0 unless (eval {
781 0 0 $str =~ /\n/ ? :
791 6 0 unless (eval {
806 0 0 unless (defined readline $fh)