| blib/lib/WWW/Shopify/Liquid/Dialect/Shopify/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 | 1 | 1 | 473 | use strict; | |||
| 1 | 5 | ||||||
| 1 | 33 | ||||||
| 3 | 1 | 1 | 8 | use warnings; | |||
| 1 | 3 | ||||||
| 1 | 47 | ||||||
| 4 | |||||||
| 5 | 1 | 1 | 8 | package WWW::Shopify::Liquid::Dialect::Shopify::Filter::UrlForVendor; use base 'WWW::Shopify::Liquid::Filter'; | |||
| 1 | 3 | ||||||
| 1 | 187 | ||||||
| 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; |