File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/MinusAssignment.pm
Criterion Covered Total %
statement 13 16 81.2
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 2 0.0
total 18 24 75.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   15034 use strict;
  37         171  
  37         1177  
3 37     37   234 use warnings;
  37         96  
  37         1464  
4              
5             package WWW::Shopify::Liquid::Operator::MinusAssignment;
6 37     37   612 use base 'WWW::Shopify::Liquid::Operator::Assignment';
  37         98  
  37         3783  
7 37     37   273 use Scalar::Util qw(looks_like_number);
  37         95  
  37         4761  
8 1318     1318 0 4150 sub symbol { return '-='; }
9             sub operate {
10 0     0 0   return first { ($_ cmp $_[4]) == 0 } ref($_[3]) eq "ARRAY";
  0            
11 0           return index($_[3], $_[4]) != -1;
12             }
13              
14             1;