blib/lib/WWW/Shopify/Liquid/Filter/Ceil.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 | 14428 | use strict; | |||
37 | 107 | ||||||
37 | 1119 | ||||||
3 | 37 | 37 | 222 | use warnings; | |||
37 | 90 | ||||||
37 | 1344 | ||||||
4 | |||||||
5 | 37 | 37 | 238 | package WWW::Shopify::Liquid::Filter::Ceil; use base 'WWW::Shopify::Liquid::Filter'; | |||
37 | 102 | ||||||
37 | 3632 | ||||||
6 | 37 | 37 | 273 | use POSIX qw(ceil); | |||
37 | 101 | ||||||
37 | 334 | ||||||
7 | 3 | 3 | 0 | 12 | sub min_arguments { return 0; } | ||
8 | 6 | 6 | 0 | 24 | sub max_arguments { return 0; } | ||
9 | sub operate { | ||||||
10 | 2 | 2 | 0 | 7 | my ($self, $hash, $operand, @arguments) = @_; | ||
11 | 2 | 12 | return ceil($operand); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |