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

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 0.0% 0 / 4 totaltotal 39.3% 13 / 33 CC 2 SCAR 9.7
CC
2
Cov
45%
abstract
6.0
is_free
2.0
tokens
2.0
CRAP 2.6
« blib/lib/WWW/Shopify/Liquid/Tag/Form.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/IsArray.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::Free;
6 30 ▶use base 'WWW::Shopify::Liquid::Tag';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 0 ▶sub is_free { return 1; }
Subroutine is_free: not called CC=1 SCAR=6.9
Pod undocumented
8 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
9 0 ▶sub tokens { return ($_[0], map { $_->tokens } grep { defined $_ } (@{$_[0]->{arguments}})); }
Subroutine tokens: not called CC=1 SCAR=6.9
Pod undocumented
10 sub new {
11 0 ▶ my ($package, $line, $tag, $arguments) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my $self = { line => $line, core => $tag, arguments => $arguments };
13 0 return bless $self, $package;
14 }
15  
16 30 1;
« blib/lib/WWW/Shopify/Liquid/Tag/Form.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/IsArray.pm »