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

filter: Statementstmt 71.4% 10 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 61.9% 13 / 21 CC 1 SCAR 3.4
CC
1
Cov
71%
transparent
2.0
operate
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Liquid/Filter/Lstrip.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Operator/MultiplyAssignment.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::Rstrip; use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶sub transparent { return 1; }
Subroutine transparent: not called CC=1 SCAR=6.9
Pod undocumented
7 sub operate {
8 0 ▶ my ($self, $hash, $operand) = @_;
Subroutine operate: not called CC=1 SCAR=6.9
Pod undocumented
9 0 $operand =~ s/\s*$//;
10 0 return $operand;
11 }
12  
13 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/Lstrip.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Operator/MultiplyAssignment.pm »