Branch Coverage

blib/lib/Pandoc/Filter/HeaderIdentifiers.pm
Criterion Covered Total %
branch 14 18 77.7


line true false branch
21 5 7 if ref $id
22 6 1 $_->name ne 'Note' ? :
7 0 if $_->is_inline
46 4 8 if ($ids and $ids->{$id}++)
62 1 0 @_ > 2 ? :
67 4 1 unless $id =~ /^\p{InPandocHeaderIdentifier}+$/ and $id =~ /^\p{Letter}/
68 1 0 if ($id =~ /^(.+)-(\d+)$/)
70 1 0 unless defined $ids->{$id} and $ids->{$id} > $2
77 4 1 if $_[0]->id eq ''