File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Greater.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   15186 use strict;
  37         110  
  37         1178  
3 37     37   242 use warnings;
  37         94  
  37         1397  
4              
5             package WWW::Shopify::Liquid::Operator::Greater;
6 37     37   243 use base 'WWW::Shopify::Liquid::Operator';
  37         96  
  37         7008  
7 1318     1318 0 3698 sub symbol { return '>'; }
8 425     425 0 958 sub priority { return 5; }
9 9     9 0 54 sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) == 1; }
10              
11             1;