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 | 157 | $params->{'FILTERS'} || {} |
206 | 2 | 157 | $params->{'TOLERANT'} || 0 |
207 | 4 | 155 | $params->{'DEBUG'} || 0 |
450 | 1 | 0 | $Template::Filters::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 |
---|---|---|---|---|
131 | 19 | 0 | 133 | $self->{'FILTERS'}{$name} || $Template::Filters::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() |