Branch Coverage

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


line true false branch
16 0 1805 if not $kwargs{'dirs'} or ref $kwargs{'dirs'} ne 'ARRAY'
21 0 1805 if not $kwargs{'raw_chunks'} or ref $kwargs{'raw_chunks'} ne 'ARRAY'
50 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 '') { }
58 1 637 if ($1 eq 'block.super') { }
116 53 6 if (not exists $DTL::Fast::TAG_HANDLERS{$tag_name} and exists $DTL::Fast::KNOWN_TAGS{$tag_name})
127 843 6 if (exists $DTL::Fast::TAG_HANDLERS{$tag_name}) { }
140 2 4 if ($self->isa('DTL::Fast::Tag') and not $self->isa('DTL::Fast::Tag::Simple')) { }