blib/lib/WWW/Shopify/Liquid/Filter/Min.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 7 | 7 | 100.0 |
pod | 0 | 3 | 0.0 |
total | 23 | 26 | 88.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 37 | 37 | 14503 | use strict; | |||
37 | 111 | ||||||
37 | 1134 | ||||||
3 | 37 | 37 | 232 | use warnings; | |||
37 | 113 | ||||||
37 | 1447 | ||||||
4 | |||||||
5 | 37 | 37 | 244 | package WWW::Shopify::Liquid::Filter::Min; use base 'WWW::Shopify::Liquid::Filter'; | |||
37 | 98 | ||||||
37 | 4750 | ||||||
6 | 85 | 85 | 0 | 535 | sub transparent { return 1; } | ||
7 | 2 | 2 | 0 | 7 | sub max_arguments { return 0; } | ||
8 | 37 | 37 | 297 | use List::Util qw(min); | |||
37 | 97 | ||||||
37 | 4361 | ||||||
9 | sub operate { | ||||||
10 | 1 | 1 | 0 | 2 | return min(@{$_[2]}); | ||
1 | 8 | ||||||
11 | } | ||||||
12 | |||||||
13 | 1; |