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

filter: Statementstmt 40.0% 10 / 25 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.2% 3 / 11 Podpod 0.0% 0 / 8 totaltotal 25.0% 13 / 52 CC 5 SCAR 13.7
CC
5
Cov
30%
abstract
6.0
new
6.0
strip_left_end
6.0
CRAP 3.9
« Build ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/Handleize.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::Enclosing;
6 30 ▶use base 'WWW::Shopify::Liquid::Tag';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 0 ▶sub abstract { my $package = ref($_[0]) ? ref($_[0]) : $_[0]; return ($package eq __PACKAGE__); }
Subroutine abstract: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] ? : 0 0 0
8 0 ▶sub is_enclosing { return 1; }
Subroutine is_enclosing: not called CC=1 SCAR=6.9
Pod undocumented
9 0 ▶sub inner_tags { return (); }
Subroutine inner_tags: not called CC=1 SCAR=6.9
Pod undocumented
10 0 ▶sub inner_ignore_whitespace { return 0; }
Subroutine inner_ignore_whitespace: not called CC=1 SCAR=6.9
Pod undocumented
11 # Interprets the inner of this tag as being completely text. Used for comments and raws.
12 0 ▶sub inner_halt_lexing { return 0; }
Subroutine inner_halt_lexing: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 sub new {
15 0 ▶ my ($package, $line, $tag, $arguments, $contents) = @_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
16 0 my $self = { line => $line, core => $tag, arguments => $arguments, contents => @{$contents->[0]} };
17 0 ▶ die new WWW::Shopify::Liquid::Exception::Parser($self, "Uncustomized tags can only have one element following their contents.") unless int(@$contents) == 1;
Branch: 1 branch
BranchTrueFalseTotal
unless int @$contents == 1 0 0 0
18 0 return bless $self, $package;
19 }
20  
21 0 ▶sub strip_left_end { $_[0]->{strip_left_end} = $_[1] if @_ > 1; return $_[0]->{strip_left_end}; }
Subroutine strip_left_end: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
22 0 ▶sub strip_right_end { $_[0]->{strip_right_end} = $_[1] if @_ > 1; return $_[0]->{strip_right_end}; }
Subroutine strip_right_end: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 0 0
23  
24 30 1;
« Build ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/Handleize.pm »