blib/lib/DTL/Fast/Filter/Addslashes.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 22 | 23 | 95.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package DTL::Fast::Filter::Addslashes; | ||||||
2 | 2 | 2 | 1135 | use strict; use utf8; use warnings FATAL => 'all'; | |||
2 | 2 | 4 | |||||
2 | 2 | 45 | |||||
2 | 10 | ||||||
2 | 2 | ||||||
2 | 11 | ||||||
2 | 46 | ||||||
2 | 3 | ||||||
2 | 63 | ||||||
3 | 2 | 2 | 9 | use parent 'DTL::Fast::Filter'; | |||
2 | 3 | ||||||
2 | 9 | ||||||
4 | |||||||
5 | $DTL::Fast::FILTER_HANDLERS{'addslashes'} = __PACKAGE__; | ||||||
6 | |||||||
7 | #@Override | ||||||
8 | sub filter | ||||||
9 | { | ||||||
10 | 4 | 4 | 0 | 5 | shift; # self | ||
11 | 4 | 6 | shift; # filter_manager | ||||
12 | 4 | 6 | my $value = shift; | ||||
13 | 4 | 49 | $value =~ s/(? | ||||
14 | 4 | 18 | return $value; | ||||
15 | } | ||||||
16 | |||||||
17 | 1; |