File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/LessEquals.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   15223 use strict;
  37         105  
  37         1143  
3 37     37   236 use warnings;
  37         99  
  37         1451  
4              
5             package WWW::Shopify::Liquid::Operator::LessEquals;
6 37     37   687 use base 'WWW::Shopify::Liquid::Operator';
  37         102  
  37         6554  
7 1318     1318 0 3829 sub symbol { return '<='; }
8 510     510 0 1238 sub priority { return 5; }
9 1     1 0 6 sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) != 1; }
10              
11             1;