File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Less.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   17642 use strict;
  37         108  
  37         1158  
3 37     37   231 use warnings;
  37         97  
  37         1539  
4              
5             package WWW::Shopify::Liquid::Operator::Less;
6 37     37   241 use base 'WWW::Shopify::Liquid::Operator';
  37         94  
  37         6562  
7 1318     1318 0 3820 sub symbol { return '<'; }
8 510     510 0 1140 sub priority { return 5; }
9 7     7 0 42 sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) == -1; }
10              
11             1;