lib/Template/Plugin/Filter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 3 | 10 | 30.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
35 | 2 | 0 | 0 | @args && ref $args[-1] eq 'HASH' |
line | l | !l | condition |
---|---|---|---|
84 | 0 | 2 | $$self{'_DYNAMIC_FILTER'} ||= [sub { my($context, @args) = @_; my $config = ref $args[-1] eq 'HASH' ? pop @args : {}; return sub { $this->filter(shift(), \@args, $config); } ; } , 1] |
89 | 0 | 0 | $$self{'_STATIC_FILTER'} ||= sub { $this->filter(shift()); } |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
52 | 2 | 0 | 0 | $self->init($config) || $class->error($self->error) |