File Coverage

blib/lib/WWW/Shopify/Liquid/Dialect/Shopify/Filter/LinkToVendor.pm
Criterion Covered Total %
statement 9 10 90.0
branch 0 2 0.0
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   294 use strict;
  1         2  
  1         21  
3 1     1   4 use warnings;
  1         3  
  1         27  
4              
5             package WWW::Shopify::Liquid::Dialect::Shopify::Filter::LinkToVendor;
6 1     1   4 use base 'WWW::Shopify::Liquid::Filter';
  1         1  
  1         113  
7 0 0   0 0   sub operate { return $_[1]->{product} ? "<a href='/collections/vendors?q=" . uri_escape($_[1]->{product}->{vendor}) . "'>" . $_[3] . "</a>" : $_[3]; }
8              
9             1;