Condition Coverage

lib/Template/Parser.pm
Criterion Covered Total %
condition 43 61 70.4


and 3 conditions

line !l l&&!r l&&r condition
106 0 1 132 $_[0] && ref $_[0] eq 'HASH'
198 1 6 10 @$blocks && $$blocks[-1] eq $name
331 0 7 1274 defined $text and length $text
358 0 3742 0 s/^($CHOMP_FLAGS)?(\s*)//os and $2
368 3603 21 118 $chomp and $pre
482 309 0 1090 defined $pre and length $pre
621 7923 776 0 $anycase && (!@tokens || $tokens[-2] ne 'DOT')
788 42749 1279 29503 not defined $token and @$tokens
793 4013 2 15 $$info{'DEBUG'} and not $in_string

or 2 conditions

line l !l condition
124 2 131 $$config{'FACTORY'} || 'Template::Directive'
162 132 0 $$self{'FACTORY'}->new('NAMESPACE', $$config{'NAMESPACE'}) || (return $class->error($$self{'FACTORY'}->error))
222 1 133 $$self{'STYLE'} ||= []
288 1281 0 $self->split_text($text) || (return undef)
361 15 3717 $linecount ||= 0
668 154 0 $$self{'DEFBLOCK'} || (return undef)
680 28 2 $$self{'DEFBLOCK_STACK'} ||= []
688 30 0 $$self{'DEFBLOCK_STACK'} || (return $defs)
702 25 0 $$self{'METADATA'} || (return undef)
722 3435 8 $$info{'path'} || $$info{'name'} || '(unknown template)'
724 3272 171 $line ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
151 0 133 0 $$self{'GRAMMAR'} ||= do { require Template::Grammar; 'Template::Grammar'->new }
233 0 3 0 $$config{'START_TAG'} ||= $start
234 0 3 0 $$config{'END_TAG'} ||= $end
479 41 0 1358 $3 || $4