Branch Coverage

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


line true false branch
106 698 379 if @_ == 1
110 48 0 unless defined &$attr
148 2 0 if defined wantarray
172 4 28 if $self->_process_core_flags
173 10 18 if $self->_abort
175 12 6 if (@{$self->_non_main_flags}) { }
183 8 10 if $self->_dirty_cache
199 1 31 unless @ARGV
215 353 31 unless $$o{$_->{'name'}} and $_->{'handler'}
217 9 22 if ($_->{'core'}) { }
235 1 31 if $o->{'flush_cache'}
238 1 31 if $self->_opts->{'no_colors'} or os_type() eq "Windows"
262 16 2 unless my $dump = $self->_opts->{'dump'}
265 0 2 if ($dump >= 2) { }
2 0 elsif ($dump >= 1) { }
271 4 14 if /^_cache_/u and not /path/u
365 0 32 unless &GetOptions($opts, _get_spec_list())
375 58 21 if $pod
394 0 9 if $self->_opts->{'dump'}
396 4 5 if $self->$handler
511 42 90 length $_ == 1 ? :
528 6 22 unless ($class)
529 4 2 unless ($self->_opts->{'no_error'})
538 0 22 unless ($class =~ m[ ^ [-~\w_:\\/. ]+ $ ]ux)
539 0 0 unless ($self->_opts->{'no_error'})
548 4 18 unless ($self->_get_path)
549 3 1 unless ($self->_opts->{'no_error'})
565 15 22 if $mem_cache
569 11 11 if ($disk_cache and $disk_cache->{'path'})
575 0 11 if $self->_opts->{'dump'}
593 2 10 if $self->_opts->{'dump'}
596 2 10 if $self->_opts->{'dump'}
598 0 12 if $self->$handler
621 1 1 if ($cache->{'class'} ne $self->_class)
644 0 0 if ($method)
687 2 8 if $self->_opts->{'dump'}
698 0 6 if $self->_opts->{'dump'}
702 1 5 if ($self->_method) { }
719 6 9 if $mem_cache
723 0 9 if ($disk_cache and $disk_cache->{'name_and_summary'})
729 0 9 if $self->_opts->{'dump'}
747 0 15 if $version_cache
751 0 15 if ($disk_cache and $disk_cache->{'version'})
760 14 1 unless ($self->_get_pod->class_is_path)
785 0 6 $class_is_path ? :
788 0 6 $class_is_path ? :
0 6 $version ? :
0 6 $first_release ? :
814 0 6 unless $name and $summary
827 5 9 if $isa_cache
831 0 9 if ($disk_cache and $disk_cache->{'isa'})
842 8 1 unless ($self->_get_pod->class_is_path)
845 0 14 if $seen{$class}++
871 4 1 if $size <= 1
884 14 9 if $mem_cache
888 0 9 if ($disk_cache and $disk_cache->{'events'})
894 0 9 if $self->_opts->{'dump'}
922 4 1 unless $size
941 14 9 if $mem_cache
945 0 9 if ($disk_cache and $disk_cache->{'methods'})
951 0 9 if $self->_opts->{'dump'}
958 1 8 if ($pod->class_is_path) { }
8 0 elsif ($self->_import_class) { }
995 0 8 if ($@) { }
1032 4 1 unless ($self->_opts->{'all'})
1041 0 5 if (@$all_method_names_and_docs and not @all_method_docs)
1048 1 4 $self->_opts->{'all'} ? :
1057 132 25 $doc_raw ? :
1060 132 25 $doc_raw ? :
1065 4 1 unless $self->_opts->{'all'}
1078 0 1 if $self->_opts->{'dump'}
1138 1 8 unless (-e $path->dirname)
1139 0 1 unless mkdir $path->dirname
1159 51 24 if $self->_dirty_cache
1163 3 21 if $mem_cache
1167 0 21 unless (-e $file)
1176 10 11 if ($disk_cache->{'class'} ne $self->_class)
1206 2 0 $width_raw >= 0 ? :
1218 73 113 if $total_chars <= $term_width
1227 50 136 unless ($part->{'len'})
1229 13 37 if $size_exceeded
1234 0 136 if $size_exceeded
1237 113 23 if ($so_far_len + $part->{'len'} > $base_width)