lib/Template/Filters.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 45 | 64.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
120 | 2 | 2 | 0 | blessed $name and $name->isa($PLUGIN_FILTER) |
305 | 0 | 17 | 1 | $] >= 5.008 and utf8::is_utf8($text) |
331 | 0 | 4 | 0 | $] >= 5.008 and utf8::is_utf8($text) |
508 | 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 |
450 | 1 | 0 | $$AVAILABLE{'HTML_ENTITY'} || eval { do { use_apache_util() } } || eval { do { use_html_entities() } } || -1 |
651 | 1 | 0 | $context->config->{'OUTPUT_PATH'} || (return '') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
130 | 19 | 133 | 0 | $$self{'FILTERS'}{$name} || $$FILTERS{$name} |
150 | 4 | 2 | 78 | $error ||= $@ |
151 | 6 | 77 | 1 | $error or ref $filter eq 'CODE' |
302 | 14 | 4 | 0 | $URI_REGEX ||= qr/([^$UNSAFE_CHARS])/l |
303 | 16 | 2 | 0 | $URI_ESCAPES ||= uri_escapes() |
328 | 1 | 3 | 0 | $URL_REGEX ||= qr"([^;/?:\@&=+\$,$UNSAFE_CHARS])"l |
329 | 4 | 0 | 0 | $URI_ESCAPES ||= uri_escapes() |