File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Ceil.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   10153 use strict;
  21         39  
  21         734  
3 21     21   99 use warnings;
  21         45  
  21         700  
4              
5 21     21   243 package WWW::Shopify::Liquid::Filter::Ceil; use base 'WWW::Shopify::Liquid::Filter';
  21         39  
  21         1548  
6 21     21   121 use POSIX qw(ceil);
  21         39  
  21         187  
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 ceil($operand);
12             }
13              
14             1;