blib/lib/WWW/Shopify/Liquid/Operator/Contains.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 12 | 75.0 |
branch | n/a | ||
condition | 0 | 3 | 0.0 |
subroutine | 3 | 6 | 50.0 |
pod | 0 | 3 | 0.0 |
total | 12 | 24 | 50.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 30 | 30 | 15931 | use strict; | |||
30 | 54 | ||||||
30 | 931 | ||||||
3 | 30 | 30 | 119 | use warnings; | |||
30 | 46 | ||||||
30 | 1098 | ||||||
4 | |||||||
5 | package WWW::Shopify::Liquid::Operator::Contains; | ||||||
6 | 30 | 30 | 118 | use base 'WWW::Shopify::Liquid::Operator'; | |||
30 | 37 | ||||||
30 | 3921 | ||||||
7 | 0 | 0 | 0 | sub symbol { return 'contains'; } | |||
8 | 0 | 0 | 0 | sub priority { return 11; } | |||
9 | 0 | 0 | 0 | 0 | sub operate { return defined $_[3] && index($_[3], $_[4]) != -1; } | ||
10 | |||||||
11 | 1; |