Branch Coverage

blib/lib/Pod/Markdown.pm
Criterion Covered Total %
branch 120 130 92.3


line true false branch
55 185 49 if $HAS_HTML_ENTITIES
56 48 1 if (defined $ents) { }
141 2 904 unless exists $attributes{$attr}
160 847 153 if (@_) { }
177 71 234 if (@_)
179 0 71 if (not $_[0]) { }
188 21 2 $HAS_HTML_ENTITIES ? :
23 48 $_[0] eq '1' ? :
213 2424 606 unless $attr =~ /^(\w+)_fragment_format/
218 510 96 if ($format) { }
220 464 46 if ref $format eq 'CODE'
224 47 49 if ($type eq 'perldoc') { }
228 38 56 if ($target eq $URL_PREFIXES{$alias})
243 0 142 unless $self->can($prefix . $format)
290 0 67 unless ++$_[0]->_private->{'indent'} >= 1
294 0 67 unless --$_[0]->_private->{'indent'} >= 0
351 34 438 if ($level)
369 3 7 if ($args{'with_meta'} and not $parser->include_meta_tags)
493 440 20 if ($stash->{'encode_amp'}) { }
20 0 elsif (exists $stash->{'html_encode_chars'}) { }
494 38 402 if (exists $stash->{'html_encode_chars'}) { }
511 440 20 if $stash->{'encode_lt'}
547 461 33 if ($stash->{'encode_amp'})
550 17 29 $2 ? :
44 46 $1 ? :
553 461 33 if ($stash->{'encode_lt'})
557 16 24 $2 ? :
32 40 $1 ? :
572 83 460 if ($stash->{'no_escape'}) { }
592 73 10 if $stash->{'encode_amp'}
593 73 10 if $stash->{'encode_lt'}
609 0 290 unless @{$self->_private->{'stacks'};} == 0
614 6 284 if ($self->include_meta_tags)
618 55 235 if (my $encoding = $self->_get_output_encoding) { }
620 36 19 $HAS_HTML_ENTITIES ? :
643 12 278 if $self->match_encoding
684 1 31 unless $line =~ /^( +)/
686 12 19 if length $1 < length $indent
688 11 6 if ((my $smallest = length $indent) < 4)
697 22 1 length $_ ? :
731 18 324 if (my $last = $self->_private->{'search_header'})
750 9 34 $text =~ /AUTHOR/ ? :
9 43 $text =~ /NAME/ ? :
791 21 44 if (my $text = $self->_pop_stack_text)
794 16 5 if ($self->_private->{'last_state'}{'blocks'}) { }
818 42 1 defined $text && length $text ? :
878 18 4 length $_ ? :
889 2 8 if ($attr->{'target'} eq 'html')
906 2 8 if ($self->_private->{'last_state'}{'for_html'})
966 0 92 unless my $flags = pop @{$self->_private->{'link'};}
971 69 0 $type eq 'pod' ? :
6 69 $type eq 'man' ? :
17 75 $type eq 'url' ? :
982 4 88 unless (length $text)
983 1 1 $to ? :
2 2 $section ? :
992 0 92 unless ($url)
1034 3 2 if $longest < $len
1037 3 58 $longest > 0 ? :
1055 4 54 if (defined $name and $self->is_local_module($name) and defined $self->local_module_url_prefix)
1066 58 11 if ($name)
1072 42 27 if ($section)
1074 31 11 $url ? :
1080 21 21 unless ref $method
1170 0 9 unless length $section