Branch Coverage

blib/lib/Templ/Parser.pm
Criterion Covered Total %
branch 10 38 26.3


line true false branch
15 0 0 unless (defined $class or ref $class or not $class =~ /^(\w+\:\:)*\w+$/)
18 0 4 if ($class eq 'Templ::Parser')
32 0 4 if ($self->prettify)
48 0 4 if ($self->prettify)
67 0 4 if ($self->tidy)
68 0 0 if ($can_tidy) { }
90 0 4 if ($self->tidy or $self->prettify)
97 0 4 if ($self->debug)
123 0 0 if $chunk eq '' and not $is_last_chunk
126 0 0 if ($chunk =~ s/\r\n$//) { }
0 0 elsif ($chunk =~ s/\n$//) { }
130 0 0 if ($nl) { }
131 0 0 if ($self->append_pretty) { }
141 0 0 $is_last_chunk ? :
162 0 4 if (defined $_[0])
168 0 20 if (defined $_[0])
174 0 0 if (defined $_[0])
181 0 12 if (defined $_[0])
182 0 12 $self->tidy ? :