blib/lib/WWW/Shopify/Liquid/Tag/Layout.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 14 | 64.2 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 21 | 57.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | 30 | 30 | 14848 | use strict; | |||
30 | 49 | ||||||
30 | 819 | ||||||
3 | 30 | 30 | 128 | use warnings; | |||
30 | 49 | ||||||
30 | 1050 | ||||||
4 | |||||||
5 | package WWW::Shopify::Liquid::Tag::Layout; | ||||||
6 | 30 | 30 | 121 | use base 'WWW::Shopify::Liquid::Tag::Free'; | |||
30 | 45 | ||||||
30 | 4540 | ||||||
7 | sub process { | ||||||
8 | 0 | 0 | 0 | my ($self, $hash, $action, $pipeline) = @_; | |||
9 | 0 | my $result = $self->{arguments}->[0]->$action($pipeline, $hash); | |||||
10 | 0 | 0 | return $self if blessed($result); | ||||
11 | 0 | $hash->{layout} = $result; | |||||
12 | 0 | return ''; | |||||
13 | } | ||||||
14 | |||||||
15 | |||||||
16 | |||||||
17 | 1; |