blib/lib/WWW/Shopify/Liquid/Dialect/Web/Filter/EscapeCSS.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 15 | 60.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 3 | 6 | 50.0 |
pod | 0 | 3 | 0.0 |
total | 12 | 26 | 46.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 1 | 1 | 475 | use strict; | |||
1 | 4 | ||||||
1 | 35 | ||||||
2 | 1 | 1 | 7 | use warnings; | |||
1 | 3 | ||||||
1 | 47 | ||||||
3 | |||||||
4 | package WWW::Shopify::Liquid::Dialect::Web::Filter::EscapeCSS; | ||||||
5 | 1 | 1 | 8 | use base 'WWW::Shopify::Liquid::Filter'; | |||
1 | 3 | ||||||
1 | 252 | ||||||
6 | |||||||
7 | 0 | 0 | 0 | sub min_arguments { return 0; } | |||
8 | 0 | 0 | 0 | sub max_arguments { return 0; } | |||
9 | sub operate { | ||||||
10 | 0 | 0 | 0 | my ($self, $hash, $operand) = @_; | |||
11 | 0 | 0 | return undef unless $operand; | ||||
12 | 0 | $operand =~ s/<\s*\/\s*style\s*>//g; | |||||
13 | 0 | return $operand; | |||||
14 | } | ||||||
15 | |||||||
16 | 1; |