blib/lib/WWW/Shopify/Liquid/Filter/Plus.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 0 | 3 | 0.0 |
total | 18 | 21 | 85.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 37 | 37 | 15327 | use strict; | |||
37 | 111 | ||||||
37 | 1102 | ||||||
3 | 37 | 37 | 238 | use warnings; | |||
37 | 96 | ||||||
37 | 1414 | ||||||
4 | |||||||
5 | 37 | 37 | 240 | package WWW::Shopify::Liquid::Filter::Plus; use base 'WWW::Shopify::Liquid::Filter'; | |||
37 | 96 | ||||||
37 | 5615 | ||||||
6 | 4 | 4 | 0 | 40 | sub min_arguments { return 1; } | ||
7 | 8 | 8 | 0 | 58 | sub max_arguments { return 1; } | ||
8 | 1 | 1 | 0 | 4 | sub operate { return $_[2] + $_[3]; } | ||
9 | |||||||
10 | 1; |