Branch Coverage

blib/lib/DTL/Fast/Parser.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
17 0 1805 if not $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY'
22 0 1805 if not $kwargs{'raw_chunks'} or ref $kwargs{'raw_chunks'} ne 'ARRAY'
51 638 5863 if ($chunk =~ /^ \{\{\s* # open sequence ([^\s].*?) # variable name or value $1 \s*\}\} # close sequence $/sx) { }
2423 3440 elsif ($chunk =~ /^ \{\%\s* # open sequence ([^\s]+?) # tag keyword $1 (?: \s+ # spaces (.*?) # parameters $2 )? \s*\%\} # close sequence $/sx) { }
2 3438 elsif ($chunk =~ /^\{\#.*\#\}$/s) { }
2364 1074 elsif ($chunk ne '') { }
59 1 637 if ($1 eq 'block.super') { }
117 53 6 if (not exists $DTL::Fast::TAG_HANDLERS{$tag_name} and exists $DTL::Fast::KNOWN_TAGS{$tag_name})
128 843 6 if (exists $DTL::Fast::TAG_HANDLERS{$tag_name}) { }
141 2 4 if ($self->isa('DTL::Fast::Tag') and not $self->isa('DTL::Fast::Tag::Simple')) { }