File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Truncate.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   15404 use strict;
  37         111  
  37         1222  
3 37     37   243 use warnings;
  37         105  
  37         1405  
4              
5 37     37   243 package WWW::Shopify::Liquid::Filter::Truncate; use base 'WWW::Shopify::Liquid::Filter';
  37         98  
  37         4700  
6 1     1 0 9 sub operate { return substr($_[2], 0, $_[3]); }
7              
8             1;