| 1 | |||||||||||||||||||||||||||||
| 2 | package WWW::Shopify::Liquid::Tag::Output; | ||||||||||||||||||||||||||||
| 3 | 38 | ▶ | use base 'WWW::Shopify::Liquid::Tag::Free'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 38 | ▶ | use Scalar::Util qw(blessed); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 0 | ▶ | sub max_arguments { return 1; } | ||||||||||||||||||||||||||
|
Subroutine
max_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 7 | 0 | ▶ | sub abstract { return 0; } | ||||||||||||||||||||||||||
|
Subroutine
abstract: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 10 | 0 | my ($package, $line, $arguments) = @_; | |||||||||||||||||||||||||||
| 11 | 0 | my $self = { arguments => $arguments, line => $line }; | |||||||||||||||||||||||||||
| 12 | 0 | return bless $self, $package; | |||||||||||||||||||||||||||
| 13 | } | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 0 | ▶ | sub operate { | ||||||||||||||||||||||||||
|
Subroutine
operate: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 16 | 0 | my ($self, $hash, $argument) = @_; | |||||||||||||||||||||||||||
| 17 | 0 | ▶ | return "$argument" if !ref($argument) || blessed($argument); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not ref $argument or builtin::blessed($argument)
MC/DC0%0/2
not ref $argument or builtin::blessed($argument)
not ref $argument
builtin::blessed($argument)
Truth table0%0/3
not(A) or B
A= not ref $argumentB= builtin::blessed($argument)
| |||||||||||||||||||||||||||||
| 18 | 0 | return ''; | |||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 38 | 1; | |||||||||||||||||||||||||||