File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Minus.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 37     37   14558 use strict;
  37         142  
  37         1128  
3 37     37   241 use warnings;
  37         100  
  37         1368  
4              
5 37     37   251 package WWW::Shopify::Liquid::Filter::Minus; use base 'WWW::Shopify::Liquid::Filter';
  37         100  
  37         6246  
6 3     3 0 19 sub min_arguments { return 1; }
7 6     6 0 30 sub max_arguments { return 1; }
8 0     0 0   sub operate { return $_[2] - $_[3]; }
9              
10             1;