File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Or.pm
Criterion Covered Total %
statement 11 12 91.6
branch n/a
condition 0 3 0.0
subroutine 5 6 83.3
pod 0 3 0.0
total 16 24 66.6


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   12895 use strict;
  21         37  
  21         833  
3 21     21   104 use warnings;
  21         31  
  21         752  
4              
5             package WWW::Shopify::Liquid::Operator::Or;
6 21     21   99 use base 'WWW::Shopify::Liquid::Operator';
  21         34  
  21         2777  
7 291     291 0 803 sub symbol { return ('||', 'or'); }
8 920     920 0 1786 sub priority { return 4; }
9 0   0 0 0   sub operate { return $_[3] || $_[4]; }
10              
11             1;