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 21     21   10299 use strict;
  21         44  
  21         711  
3 21     21   101 use warnings;
  21         31  
  21         718  
4              
5 21     21   95 package WWW::Shopify::Liquid::Filter::Minus; use base 'WWW::Shopify::Liquid::Filter';
  21         43  
  21         2459  
6 3     3 0 27 sub min_arguments { return 1; }
7 6     6 0 34 sub max_arguments { return 1; }
8 0     0 0   sub operate { return $_[2] - $_[3]; }
9              
10             1;