blib/lib/WWW/Shopify/Liquid/Filter/MD5.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 67.7% 21 / 31 CC 3 SCAR 16.3
CC
3
Cov
67%
operate
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« blib/lib/WWW/Shopify/Liquid/Filter/LinkTo.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/DateParse.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 30 ▶package WWW::Shopify::Liquid::Filter::MD5; use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 30 ▶use Digest::MD5 qw(md5_hex);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 30 ▶use JSON qw(to_json);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 sub operate {
9 0 ▶ my ($self, $hash, $operand, @arguments) = @_;
Subroutine operate: not called CC=3 SCAR=24.8
Pod undocumented
10 0 ▶ $operand = '' unless defined $operand;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $operand 0 0 0
11 0 ▶ return md5_hex(to_json($operand, { canonical => 1 })) if ref($operand);
Branch: 1 branch
BranchTrueFalseTotal
if ref $operand 0 0 0
12 0 return md5_hex($operand);
13 }
14  
15 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/LinkTo.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/DateParse.pm »