blib/lib/WWW/Shopify/Model/SmartCollection/Rule.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 12.5% 1 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 25.0% 1 / 4 totaltotal 53.6% 22 / 41 CC 4 SCAR 10.0
CC
4
Cov
55%
column
4.1
condition
4.1
relation
4.1
CRAP 2.7
« blib/lib/WWW/Shopify/Model/Order/ClientDetails.pm ↑ Summary blib/lib/WWW/Shopify/Model/SmartCollection/Image.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 package WWW::Shopify::Model::SmartCollection::Rule;
7 1 ▶use parent 'WWW::Shopify::Model::NestedItem';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 12 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
10 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 "column" => new WWW::Shopify::Field::String::Enum(["title", "type", "vendor", "tag", "weight", "variant_title", "variant_compare_at_price", "variant_inventory"]),
12 "relation" => new WWW::Shopify::Field::String::Enum(["equals", "greater_than", "less_than", "starts_with", "ends_with", "contains"]),
13 "condition" => new WWW::Shopify::Field::String(),
14 }; }
15  
16 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine column: not called CC=2 SCAR=14.2
Subroutine condition: not called CC=2 SCAR=14.2
Subroutine relation: not called CC=2 SCAR=14.2
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 4 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
17  
18 1 1;
« blib/lib/WWW/Shopify/Model/Order/ClientDetails.pm ↑ Summary blib/lib/WWW/Shopify/Model/SmartCollection/Image.pm »