File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Modulo.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   14142 use strict;
  37         103  
  37         1085  
3 37     37   220 use warnings;
  37         91  
  37         1449  
4              
5             package WWW::Shopify::Liquid::Operator::Modulo;
6 37     37   235 use base 'WWW::Shopify::Liquid::Operator';
  37         87  
  37         6507  
7 1321     1321 0 3845 sub symbol { return '%'; }
8 170     170 0 474 sub priority { return 10; }
9 1     1 0 7 sub operate { return $_[0]->ensure_numerical($_[3]) % $_[0]->ensure_numerical($_[4]); }
10              
11             1;