blib/lib/WWW/Shopify/Liquid/Operator/MultiplyAssignment.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 13 | 69.2 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 5 | 60.0 |
pod | 0 | 2 | 0.0 |
total | 12 | 20 | 60.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 30 | 30 | 17365 | use strict; | |||
30 | 64 | ||||||
30 | 1007 | ||||||
3 | 30 | 30 | 161 | use warnings; | |||
30 | 43 | ||||||
30 | 1061 | ||||||
4 | |||||||
5 | package WWW::Shopify::Liquid::Operator::MultiplyAssignment; | ||||||
6 | 30 | 30 | 114 | use base 'WWW::Shopify::Liquid::Operator::Assignment'; | |||
30 | 1604 | ||||||
30 | 4473 | ||||||
7 | 0 | 0 | 0 | sub symbol { return '*='; } | |||
8 | sub operate { | ||||||
9 | 0 | 0 | 0 | return first { ($_ cmp $_[4]) == 0 } ref($_[3]) eq "ARRAY"; | |||
0 | |||||||
10 | 0 | return index($_[3], $_[4]) != -1; | |||||
11 | } | ||||||
12 | |||||||
13 | 1; |