Branch Coverage

blib/lib/Pod/Thread.pm
Criterion Covered Total %
branch 63 100 63.0


line true false branch
54 0 0 if (not $self->{'opt_id'} and $line =~ / (\$ Id: .* \$) /msux)
173 31 7 if ($self->can("cmd_$method")) { }
7 0 elsif ($self->can("start_$method")) { }
192 31 7 if ($self->can("cmd_$method")) { }
7 0 elsif ($self->can("end_$method")) { }
200 2 29 if (defined $text)
201 2 0 if (@{$self->{'PENDING'};} > 1) { }
274 22 8 if ($self->{'SPACE'})
275 3 19 if ($text =~ s/ \A \] \s* \n //msux)
283 22 8 if ($text =~ s/ \n (\n+) \z /\n/msux)
299 5 0 if ($self->{'ENCODE'})
302 0 5 unless print {$self->{'output_fh'};} $output
322 0 1 unless @{$self->{'HEADINGS'}}
345 10 1 unless ($word =~ / _ /msux)
347 10 0 if ($word ne 'and')
365 0 2 unless @{$self->{'HEADINGS'}}
382 1 5 if ($length + length($section) > $NAVBAR_LENGTH)
389 3 3 if (length $pending != 0)
403 2 0 if (length $pending > 0)
424 0 5 if ($self->{'opt_id'})
429 2 3 if ($self->{'TITLE'})
435 2 3 if (defined $self->{'SUBHEADING'})
440 2 3 if ($self->{'opt_navbar'})
443 1 4 if ($self->{'opt_contents'})
463 0 5 if ($attrs->{'contentless'}) { }
488 0 5 if ($layers[-1] and $layers[-1] & 32768)
504 0 5 if ($self->errors_seen)
510 5 0 if ($self->{'ENCODE'})
513 0 5 unless print {$self->{'output_fh'};} $header
540 0 3 unless ($self->{'ITEM_PENDING'})
546 1 2 if ($self->{'ITEM_OPEN'})
553 3 0 defined $text ? :
574 0 14 if (not $self->{'opt_id'} and $text =~ / (\$ Id: .* \$) /msux)
582 3 11 if (@{$self->{'ITEMS'};} > 0) { }
2 9 elsif ($self->{'IN_NAME'} and $text =~ /$NAME_REGEX/u) { }
614 0 0 if ($text =~ / \A \s* \z /msux)
619 0 0 if (not $self->{'opt_id'} and $text =~ / (\$ Id: .* \$) /msux)
627 0 0 if (@{$self->{'ITEMS'};} > 0) { }
672 9 1 if (defined $tag) { }
699 2 9 if ($text eq 'NAME' and not exists $self->{'opt_title'})
730 0 12 if ($self->{'ITEM_PENDING'})
733 2 10 if ($self->{'ITEM_OPEN'})
771 0 2 if (@{$self->{'ITEMS'};} > 0)
808 0 3 if ($self->{'ITEM_PENDING'})
820 3 0 if ($self->{'ITEMS'}[-1] eq '\\desc') { }
871 2 0 if ($attrs->{'type'} eq 'url') { }
0 0 elsif ($attrs->{'type'} eq 'pod') { }
872 1 1 if (not defined $attrs->{'to'} or $attrs->{'to'} eq $text) { }
881 0 0 if (not defined $page and defined $section and $sections->{$section})
889 0 0 defined $text ? :