Branch Coverage

blib/lib/Pandoc/Selector.pm
Criterion Covered Total %
branch 21 22 95.4


line true false branch
21 83 257 if _match_expression($selector, $element)
32 250 90 if $selector =~ s/^($NAME)\s*//i and lc $1 ne lc $elem->name
34 73 17 if $selector eq ''
37 6 11 if ($selector =~ s/^:(document|block|inline|meta)\s*//)
39 2 4 unless $elem->$method
40 3 1 if $selector eq ''
52 1 11 unless $elem->isa('Pandoc::Document::AttributesRole')
63 4 10 if ($selector =~ s/^#($IDENTIFIER)\s*//) { }
10 0 elsif ($selector =~ s/^\.($IDENTIFIER)\s*//) { }
64 2 2 unless $elem->id eq $1
67 2 8 unless grep {$1 eq $_;} @{$elem->attr->[1];}