Branch Coverage

blib/lib/CGI/FastTemplate.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
77 1 4 if (defined $root)
111 0 5 unless (ref $self)
150 0 0 if (@args == 0)
179 0 0 unless (defined $number)
211 0 0 if (@_ == 0)
244 1 0 if (ref $self)
295 0 7 if (ref $_[0] eq 'HASH')
334 9 0 if (ref $parse{$target} ne 'ARRAY')
343 5 4 if (substr($p, 0, 1) eq '.')
349 0 9 unless (exists $$self[4]{$p})
357 2 7 unless (exists $$self[5]{$p})
375 2 16 unless (defined $v)
381 0 0 if (exists $$r{$+})
388 2 16 unless (defined $v)
390 1 1 if ($$self[0]) { }
406 5 4 if ($append) { }
437 2 0 if (ref $self and defined $$self[6]) { }
0 0 elsif (defined $CGI::FastTemplate::ROOT) { }
446 0 2 unless (open TEMPLATE, $filename)
458 2 0 if (defined $ref)
492 0 3 if (ref $_[0] eq 'HASH') { }
523 0 0 unless (defined $var)
525 0 0 unless (defined $$self[3])
552 0 4 unless (exists $$self[1]{$what})