Branch Coverage

blib/lib/ZM/Template.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
26 0 0 if not defined $baseHtml{'tag'} or $baseHtml{'tag'} eq ''
34 0 0 if ($#_ != 1)
44 0 0 unless open HTML, "<$src"
50 0 0 unless $@
52 0 0 unless (defined $$self{'cacheDIR'})
73 0 0 unless $@
114 0 0 if (defined $$self{'tokens'}{$token})
116 0 0 if (defined $block and $block ne '') { }
121 0 0 if (defined $$self{'loops'}{$bl_new})
126 0 0 if (strstr($loop, "$$self{'tag'}" . $token . "$$self{'tag'}"))
132 0 0 unless $flag
149 0 0 if (not defined $loop or $loop eq '') { }
165 0 0 if (not defined $loop or $loop eq '') { }
182 0 0 unless open my $f, "<$file"
201 0 0 if (defined $$self{'loops'}{$block . '_new'}) { }
223 0 0 if (strstr($loop, "$$self{'tag'}z_" . $block . "$$self{'tag'}"))
233 0 0 if ($num == 0) { }
0 0 elsif ($num >= 1) { }
260 0 0 if ($$self{'strnum'}{$block} > 1) { }
0 0 elsif (defined $$self{'strnum'}{$block} and $$self{'strnum'}{$block} == 0) { }
285 0 0 if defined $$self{'loops'}{$loop_name . '_new'}
335 0 0 if (not defined $l_name or $l_name eq '') { }
354 0 0 if (not defined $$h_ifs{$loop_name}) { }
357 0 0 if ($pos = strstr($loop, "$$self{'tag'}else_" . $loop_name)) { }
371 0 0 if ($pos = strstr($loop, "$$self{'tag'}else_" . $loop_name))
388 0 0 unless ($$self{'_loops_filled'})
395 0 0 if (($loop_name = str_before($_, '_new')) ne $_)
397 0 0 if $$self{'loops'}{$_} ne ''
427 0 0 if ($index > -1) { }
443 0 0 if ($indx != -1)
454 0 0 if ($indx != -1) { }
472 0 0 if ($str ne '') { }
487 0 0 if ($indx != -1)
533 0 0 unless defined $$self{'cacheDIR'}
534 0 0 unless -d $$self{'cacheDIR'}
548 0 0 unless defined $$self{'cacheDIR'}
553 0 0 unless -f $cacheFile
577 0 0 unless defined $$self{'cacheDIR'}