File Coverage

blib/lib/WWW/Shopify/Liquid/Operator/Multiply.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 3 0.0
total 18 21 85.7


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   11010 use strict;
  21         42  
  21         731  
3 21     21   107 use warnings;
  21         35  
  21         772  
4              
5             package WWW::Shopify::Liquid::Operator::Multiply;
6 21     21   97 use base 'WWW::Shopify::Liquid::Operator';
  21         33  
  21         2999  
7 293     293 0 725 sub symbol { return '*'; }
8 46     46 0 94 sub priority { return 10; }
9 1     1 0 14 sub operate { return $_[0]->ensure_numerical($_[3]) * $_[0]->ensure_numerical($_[4]); }
10              
11             1;