Branch Coverage

blib/lib/App/Pod.pm
Criterion Covered Total %
branch 129 166 77.7


line true false branch
108 698 379 if @_ == 1
112 48 0 unless defined &$attr
150 2 0 if defined wantarray
174 4 28 if $self->_process_core_flags
175 10 18 if $self->_abort
177 12 6 if (@{$self->_non_main_flags}) { }
185 8 10 if $self->_dirty_cache
201 1 31 unless @ARGV
217 353 31 unless $$o{$_->{'name'}} and $_->{'handler'}
219 9 22 if ($_->{'core'}) { }
237 1 31 if $o->{'flush_cache'}
240 1 31 if $self->_opts->{'no_colors'} or os_type() eq "Windows"
264 16 2 unless my $dump = $self->_opts->{'dump'}
267 0 2 if ($dump >= 2) { }
2 0 elsif ($dump >= 1) { }
273 4 14 if /^_cache_/u and not /path/u
367 0 32 unless &GetOptions($opts, _get_spec_list())
377 58 21 if $pod
396 0 9 if $self->_opts->{'dump'}
398 4 5 if $self->$handler
513 42 90 length $_ == 1 ? :
530 6 22 unless ($class)
531 4 2 unless ($self->_opts->{'no_error'})
540 0 22 unless ($class =~ m[ ^ [-~\w_:\\/. ]+ $ ]ux)
541 0 0 unless ($self->_opts->{'no_error'})
550 4 18 unless ($self->_get_path)
551 3 1 unless ($self->_opts->{'no_error'})
567 15 22 if $mem_cache
571 11 11 if ($disk_cache and $disk_cache->{'path'})
577 0 11 if $self->_opts->{'dump'}
595 2 10 if $self->_opts->{'dump'}
598 2 10 if $self->_opts->{'dump'}
600 0 12 if $self->$handler
623 1 1 if ($cache->{'class'} ne $self->_class)
646 0 0 if ($method)
689 2 8 if $self->_opts->{'dump'}
700 0 6 if $self->_opts->{'dump'}
704 1 5 if ($self->_method) { }
721 6 9 if $mem_cache
725 0 9 if ($disk_cache and $disk_cache->{'name_and_summary'})
731 0 9 if $self->_opts->{'dump'}
749 0 15 if $version_cache
753 0 15 if ($disk_cache and $disk_cache->{'version'})
762 14 1 unless ($self->_get_pod->class_is_path)
787 0 6 $class_is_path ? :
790 0 6 $class_is_path ? :
0 6 $version ? :
0 6 $first_release ? :
816 0 6 unless $name and $summary
829 5 9 if $isa_cache
833 0 9 if ($disk_cache and $disk_cache->{'isa'})
844 8 1 unless ($self->_get_pod->class_is_path)
847 0 14 if $seen{$class}++
873 4 1 if $size <= 1
886 14 9 if $mem_cache
890 0 9 if ($disk_cache and $disk_cache->{'events'})
896 0 9 if $self->_opts->{'dump'}
924 4 1 unless $size
943 14 9 if $mem_cache
947 0 9 if ($disk_cache and $disk_cache->{'methods'})
953 0 9 if $self->_opts->{'dump'}
960 1 8 if ($pod->class_is_path) { }
8 0 elsif ($self->_import_class) { }
997 0 8 if ($@) { }
1034 4 1 unless ($self->_opts->{'all'})
1043 0 5 if (@$all_method_names_and_docs and not @all_method_docs)
1050 1 4 $self->_opts->{'all'} ? :
1059 132 25 $doc_raw ? :
1062 132 25 $doc_raw ? :
1067 4 1 unless $self->_opts->{'all'}
1080 0 1 if $self->_opts->{'dump'}
1140 1 8 unless (-e $path->dirname)
1141 0 1 unless mkdir $path->dirname
1161 51 24 if $self->_dirty_cache
1165 3 21 if $mem_cache
1169 0 21 unless (-e $file)
1178 10 11 if ($disk_cache->{'class'} ne $self->_class)
1208 2 0 $width_raw >= 0 ? :
1220 73 113 if $total_chars <= $term_width
1229 50 136 unless ($part->{'len'})
1231 13 37 if $size_exceeded
1236 0 136 if $size_exceeded
1239 113 23 if ($so_far_len + $part->{'len'} > $base_width)