File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Greater.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 6 50.0
pod 0 3 0.0
total 12 21 57.1


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 30     30   15225 use strict;
  30         52  
  30         878  
3 30     30   129 use warnings;
  30         44  
  30         1303  
4              
5             package WWW::Shopify::Liquid::Operator::Greater;
6 30     30   135 use base 'WWW::Shopify::Liquid::Operator';
  30         47  
  30         4110  
7 0     0 0   sub symbol { return '>'; }
8 0     0 0   sub priority { return 5; }
9 0     0 0   sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) == 1; }
10              
11             1;