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

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/WWW/Shopify/Liquid/Renderer.pm ↑ Summary blib/lib/WWW/Shopify/Liquid.pm »
1 #!/usr/bin/perl
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use WWW::Shopify::Liquid;
Subroutine BEGIN: called CC=1 SCAR=2.6
7  
8 package WWW::Shopify::Liquid::Tag;
9 use base 'WWW::Shopify::Liquid::Element';
10  
11 sub inner_tags { return (); }
12 sub abstract { my $package = ref($_[0]) ? ref($_[0]) : $_[0]; return ($package eq __PACKAGE__); }
13 sub name { my $package = ref($_[0]) ? ref($_[0]) : $_[0]; $package =~ s/^.*:://; $package =~ s/([a-z])([A-Z])/$1_$2/g; return lc($package); }
14 sub new {
15 my ($package, $line, $tag, $arguments, $contents) = @_;
16 my $self = { line => $line, core => $tag, arguments => $arguments, contents => $contents };
17 return bless $self, $package;
18 }
19 sub is_free { return 0; }
20 sub is_enclosing { return 0; }
21 sub min_arguments { return 0; }
22 sub max_arguments { return undef; }
23  
24  
25 1;
« blib/lib/WWW/Shopify/Liquid/Renderer.pm ↑ Summary blib/lib/WWW/Shopify/Liquid.pm »