Branch Coverage

blib/lib/Template/Simple.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
38 36 249 defined $opts{$name} ? :
42 0 57 unless ref $$self{'search_dirs'} eq 'ARRAY'
61 2 55 $$self{'greedy_chunk'} ? :
114 0 28 if $@
151 0 43 unless length $template
156 17 26 $chunk_name ? :
222 7 53 unless length $template
264 16 71 unless length $text
287 0 57 ref $template_name eq 'SCALAR' ? :
289 57 0 unless ($tmpl_ref)
293 0 57 if (my $compiled = $$self{'compiled_cache'}{$template_name})
314 2 53 if $@
355 0 127 unless defined $data
365 3 124 if ($reftype) { }
367 2 1 unless $reftype eq 'Regexp'
381 1 126 unless defined $renderer
390 12 80 unless keys %{$href;}
413 66 36 defined $$href{$1} ? :
442 1 1 if ref $rendered ne 'SCALAR'
454 51 34 unless defined $tmpls
456 0 34 unless ref $tmpls eq 'HASH'
463 0 40 unless defined $tmpl
467 0 40 ref $tmpl eq 'SCALAR' ? :
482 2 0 unless @names
510 52 73 if $template
531 42 49 if $tmpl_path =~ /\n/
532 37 12 unless -r $tmpl_path