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

filter: Statementstmt 76.4% 13 / 17 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 57.1% 4 / 7 Podpod 0.0% 0 / 3 totaltotal 53.1% 17 / 32 CC 2 SCAR 9.2
CC
2
Cov
65%
operate
6.0
min_arguments
2.0
max_arguments
2.0
CRAP 2.5
« blib/lib/WWW/Shopify/Liquid/Filter/IsArray.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/EscapeHTML.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 30 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package WWW::Shopify::Liquid::Filter::IsHash;
7 30 ▶use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub min_arguments { return 0; }
Subroutine min_arguments: not called CC=1 SCAR=6.9
Pod undocumented
10 0 ▶sub max_arguments { return 0; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
11 sub operate {
12 0 ▶ my ($self, $hash, $operand, @arguments) = @_;
Subroutine operate: not called CC=2 SCAR=17.9
Pod undocumented
13 0 ▶ return ref($operand) && ref($operand) eq "HASH";
Condition0%0/3
ref $operand && ref $operand eq 'HASH'
!ll&&!rl&&r
000
MC/DC0%0/2
ref $operand && ref $operand eq 'HASH'
ref $operand ref $operand eq 'HASH'
Truth table0%0/3
A && B
A= ref $operandB= ref $operand eq 'HASH'
ABresult
0X0
100
111
14 }
15  
16 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/IsArray.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/EscapeHTML.pm »