« blib/lib/WWW/Shopify/Liquid/Filter/MoneyWithoutTrailingZeros.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/Money.pm »
| 1 | #!/usr/bin/perl | ||||||||||||||||||||||||||||
| 2 | 30 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 30 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | package WWW::Shopify::Liquid::Filter::Keys; | ||||||||||||||||||||||||||||
| 6 | 30 | ▶ | use base 'WWW::Shopify::Liquid::Filter'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | sub operate { | ||||||||||||||||||||||||||||
| 9 | 0 | ▶ | return undef unless ref($_[2]) && ref($_[2]) eq 'HASH'; | ||||||||||||||||||||||||||
|
Subroutine
operate: not called CC=3 SCAR=24.8
Pod
undocumented
Branch: 1 branch
Condition0%0/3
ref $_[2] and ref $_[2] eq "HASH"
MC/DC0%0/2
ref $_[2] and ref $_[2] eq "HASH"
ref $_[2]
ref $_[2] eq "HASH"
Truth table0%0/3
A and B
A= ref $_[2]B= ref $_[2] eq "HASH"
| |||||||||||||||||||||||||||||
| 10 | 0 | return [keys(%{$_[2]})]; | |||||||||||||||||||||||||||
| 11 | } | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 30 | 1; | |||||||||||||||||||||||||||