blib/lib/WWW/Shopify/Liquid/Filter/Floor.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 16 | 75.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 7 | 57.1 |
pod | 0 | 3 | 0.0 |
total | 16 | 26 | 61.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 21 | 21 | 10059 | use strict; | |||
21 | 41 | ||||||
21 | 710 | ||||||
3 | 21 | 21 | 104 | use warnings; | |||
21 | 29 | ||||||
21 | 715 | ||||||
4 | |||||||
5 | 21 | 21 | 101 | package WWW::Shopify::Liquid::Filter::Floor; use base 'WWW::Shopify::Liquid::Filter'; | |||
21 | 29 | ||||||
21 | 1569 | ||||||
6 | 21 | 21 | 109 | use POSIX qw(floor); | |||
21 | 40 | ||||||
21 | 137 | ||||||
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, @arguments) = @_; | |||
11 | 0 | return floor($operand); | |||||
12 | } | ||||||
13 | |||||||
14 | 1; |