Branch Coverage

blib/lib/Pod/Links.pm
Criterion Covered Total %
branch 7 66 10.6


line true false branch
16 0 2 if $link =~ s/^([^|]+)\|(?=.)//
17 0 2 if $link =~ m[[a-zA-Z]+://]
19 2 0 unless defined $sec
20 1 1 if (exists $$sec{$link} and $link =~ /^(.*)$/ or $link =~ /^"(.*)"$/ or $link =~ m[^/"?(.*?)"?$] or not $link =~ m[/] and $link =~ /^(.*\s.*)$/) { }
1 0 elsif ($link =~ m[^([^/]+)(?:/"?(.*?)"?)?$]) { }
29 0 1 if $remote =~ s/(\w+)\s*\((.*)\)$/$1/
54 0 0 if ($$parser{'inNAME'})
66 0 0 if ($$parser{'inNAME'})
79 0 0 if ($command =~ /^(head\d)/ or $command eq 'item' and not $expansion =~ /^(\*|\d+\.)/)
82 0 0 if ($command eq 'item' and $expansion =~ /\s/)
94 0 0 if ($seq_command eq 'L') { }
0 0 elsif ($seq_command eq 'E') { }
104 0 0 if $seq_argument eq 'gt'
105 0 0 if $seq_argument eq 'lt'
126 0 0 unless $sec or $name
127 0 0 if (defined $name and length $name)
130 0 0 unless defined $$hash{'link'}
133 0 0 if (defined $sec)
147 0 0 if ($url)
161 0 0 if @_ > 3
175 0 0 if $$parser{'Verbose'}
180 0 0 if (defined $name) { }
183 0 0 if (defined $doc) { }
185 0 0 if $doc =~ /,/
187 0 0 if (exists $$documents{$doc})
190 0 0 if (exists $$hash{'pod'})
197 0 0 if (exists $$sec{$section}) { }
213 0 0 if (defined $remote) { }
0 0 elsif (defined $section) { }
215 0 0 unless (exists $$documents{$remote})
219 0 0 if defined $section
250 0 0 if (exists $$sec{'NAME'}) { }
255 0 0 if ($f & 4 and not $f & 1)