File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/UrlForType.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 12 18 66.6


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   9768 use strict;
  21         44  
  21         694  
3 21     21   99 use warnings;
  21         31  
  21         711  
4              
5 21     21   97 package WWW::Shopify::Liquid::Filter::UrlForType; use base 'WWW::Shopify::Liquid::Filter';
  21         33  
  21         2371  
6 0     0 0   sub max_arguments { return 1; }
7 0     0 0   sub operate { return "/collections/types?q=" . uri_escape($_[3]); }
8              
9             1;