File Coverage

blib/lib/WWW/Shopify/Liquid/Dialect/Shopify/Filter/DefaultPagination.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 17 70.5


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 1     1   403 use strict;
  1         2  
  1         27  
3 1     1   4 use warnings;
  1         2  
  1         38  
4              
5 1     1   4 package WWW::Shopify::Liquid::Dialect::Shopify::Filter::DefaultPagination; use base 'WWW::Shopify::Liquid::Filter';
  1         2  
  1         155  
6 0     0 0   sub operate { return join(" ", map { '<span class="page"><a href="' . $_->{url} . '" title="">' . $_->{title} . '</a></span>' } @{$_[2]->{paginate}->{parts}}); }
  0            
  0            
7              
8             1;