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 21     21   10219 use strict;
  21         44  
  21         713  
3 21     21   98 use warnings;
  21         33  
  21         715  
4              
5 21     21   138 package WWW::Shopify::Liquid::Filter::Truncate; use base 'WWW::Shopify::Liquid::Filter';
  21         34  
  21         2109  
6 1     1 0 4 sub operate { return substr($_[2], 0, $_[3]); }
7              
8             1;