Branch Coverage

blib/lib/Text/Amuse/Compile/Indexer.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
76 11 0 if ($first =~ /^INDEX ([a-z]+): (.+)/) { }
83 45 0 if $str
100 7 0 if (@{$self->index_specs;}) { }
128 0 45 if (my $exists = $labels{$str})
139 40 5 if ($match->{'match'} =~ /\A\w/)
143 41 4 if ($match->{'match'} =~ /\w\z/)
156 0 138 unless $labels{$match}
167 5 261 if ($p =~ /^%/m) { }
26 235 elsif ($p =~ /^\\(mark|part|chapter|section|subsection|subsubsection)/m) { }
172 3 2 if (@prepend)
181 7 19 if (@append)
196 41 4 if ($stat->{'matches'} > 0) { }