File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Less.pm
Criterion Covered Total %
statement 11 12 91.6
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 3 0.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   152817 use strict;
  21         47  
  21         1000  
3 21     21   122 use warnings;
  21         36  
  21         1012  
4              
5             package WWW::Shopify::Liquid::Operator::Less;
6 21     21   113 use base 'WWW::Shopify::Liquid::Operator';
  21         39  
  21         10230  
7 291     291 0 948 sub symbol { return '<'; }
8 1794     1794 0 3687 sub priority { return 5; }
9 0     0 0   sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) == -1; }
10              
11             1;