Branch Coverage

lib/Template/Filters.pm
Criterion Covered Total %
branch 52 86 60.4


line true false branch
112 0 0 defined $args ? :
0 0 defined $context ? :
0 156 if $$self{'DEBUG'}
119 4 152 if (ref $name) { }
120 0 4 if (blessed $name and $name->isa($PLUGIN_FILTER)) { }
130 0 152 unless $factory = $$self{'FILTERS'}{$name} || $$FILTERS{$name}
135 86 66 if (ref $factory eq 'ARRAY') { }
142 150 2 if (ref $factory eq 'CODE') { }
143 84 66 if ($is_dynamic) { }
148 61 23 $args ? :
151 1 83 unless $error or ref $filter eq 'CODE'
163 9 143 if ($error) { }
165 0 9 $$self{'TOLERANT'} ? :
185 0 7 if $$self{'DEBUG'}
230 0 0 unless defined $val
245 0 0 ref $f eq 'ARRAY' ? :
246 0 0 $dynamic ? :
305 1 17 if ($] >= 5.008 and utf8::is_utf8($text))
331 0 4 if ($] >= 5.008 and utf8::is_utf8($text))
453 1 0 ref $haz eq 'CODE' ? :
470 4 12 unless defined $pad
471 13 3 if $pad =~ /^\d+$/l
475 0 16 unless defined $text
490 3 8 unless defined $format
494 0 19 unless defined $text
508 0 3 unless defined $iter and length $iter
512 0 3 unless defined $text
526 0 12 unless defined $search
527 0 12 unless defined $replace
531 0 13 unless defined $text
549 0 6 unless defined $text
564 1 9 unless defined $len
565 10 0 unless defined $char
569 1 9 if ($len < $lchar)
576 3 7 if length $text <= $len
611 1 3 unless $context->eval_perl
623 0 3 if $@
639 1 1 unless $outpath
643 0 1 if $file =~ m[(^|/)\.\./]l
646 1 0 unless ref $options
654 0 1 if $error
670 0 0 unless ref $options
674 0 0 if $$options{'binmode'}