blib/lib/WWW/Shopify/Liquid/Tag/Whitespace.pm

filter: Statementstmt 58.8% 10 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 46.4% 13 / 28 CC 2 SCAR 10.0
CC
2
Cov
53%
process
6.0
min_arguments
2.0
max_arguments
2.0
CRAP 2.7
« blib/lib/WWW/Shopify/Liquid/Filter/ProductImgUrl.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/EscapeCSS.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::Tag::Whitespace;
6 30 ▶use base 'WWW::Shopify::Liquid::Tag::Enclosing';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub min_arguments { return 0; }
Subroutine min_arguments: not called CC=1 SCAR=6.9
Pod undocumented
9 0 ▶sub max_arguments { return 0; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
10  
11 sub process {
12 0 ▶ my ($self, $hash, $action, $pipeline) = @_;
Subroutine process: not called CC=2 SCAR=17.9
Pod undocumented
13
14 0 my $result = $self->{contents}->$action($pipeline, $hash);
15 0 ▶ return $self unless $self->is_processed($result);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->is_processed($result) 0 0 0
16 0 $result =~ s///;
17 0 return $result;
18 }
19  
20  
21  
22 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/ProductImgUrl.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/EscapeCSS.pm »