File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/LessEquals.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   10895 use strict;
  21         40  
  21         757  
3 21     21   102 use warnings;
  21         31  
  21         721  
4              
5             package WWW::Shopify::Liquid::Operator::LessEquals;
6 21     21   94 use base 'WWW::Shopify::Liquid::Operator';
  21         34  
  21         2905  
7 291     291 0 716 sub symbol { return '<='; }
8 138     138 0 230 sub priority { return 5; }
9 0     0 0   sub operate { return ($_[0]->ensure_numerical($_[3]) <=> $_[0]->ensure_numerical($_[4])) != 1; }
10              
11             1;