lib/Template/Filters.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 37 | 67.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
120 | 2 | 2 | 0 | blessed $name and $name->isa($PLUGIN_FILTER) |
278 | 0 | 14 | 1 | $] >= 5.008 and utf8::is_utf8($text) |
303 | 0 | 1 | 0 | $] >= 5.008 and utf8::is_utf8($text) |
480 | 0 | 0 | 3 | defined $iter and length $iter |
line | l | !l | condition |
---|---|---|---|
121 | 0 | 0 | $name->factory || (return $self->error($name->error)) |
205 | 2 | 147 | $$params{'FILTERS'} || {} |
206 | 2 | 147 | $$params{'TOLERANT'} || 0 |
207 | 4 | 145 | $$params{'DEBUG'} || 0 |
275 | 13 | 2 | $URI_ESCAPES ||= {map({chr $_, sprintf('%%%02X', $_);} 0..255)} |
300 | 1 | 0 | $URI_ESCAPES ||= {map({chr $_, sprintf('%%%02X', $_);} 0..255)} |
422 | 1 | 0 | $$AVAILABLE{'HTML_ENTITY'} || eval { do { use_apache_util() } } || eval { do { use_html_entities() } } || -1 |
623 | 1 | 0 | $context->config->{'OUTPUT_PATH'} || (return '') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
130 | 19 | 127 | 0 | $$self{'FILTERS'}{$name} || $$FILTERS{$name} |
150 | 4 | 2 | 78 | $error ||= $@ |
151 | 6 | 77 | 1 | $error or ref $filter eq 'CODE' |