blib/lib/WWW/Shopify/Liquid/Filter/UrlForVendor.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 | 10060 | use strict; | |||
21 | 41 | ||||||
21 | 710 | ||||||
3 | 21 | 21 | 98 | use warnings; | |||
21 | 30 | ||||||
21 | 681 | ||||||
4 | |||||||
5 | 21 | 21 | 87 | package WWW::Shopify::Liquid::Filter::UrlForVendor; use base 'WWW::Shopify::Liquid::Filter'; | |||
21 | 36 | ||||||
21 | 2508 | ||||||
6 | 0 | 0 | 0 | sub max_arguments { return 1; } | |||
7 | 0 | 0 | 0 | sub operate { return "/collections/vendors?q=" . uri_escape($_[3]); } | |||
8 | |||||||
9 | 1; |