File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Contains.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   10620 use strict;
  21         39  
  21         744  
3 21     21   114 use warnings;
  21         30  
  21         800  
4              
5             package WWW::Shopify::Liquid::Operator::Contains;
6 21     21   103 use base 'WWW::Shopify::Liquid::Operator';
  21         26  
  21         2706  
7 293     293 0 724 sub symbol { return 'contains'; }
8 23     23 0 79 sub priority { return 11; }
9 0     0 0   sub operate { return index($_[3], $_[4]) != -1; }
10              
11             1;