blib/lib/WWW/Shopify/Model/Product/Option.pm

filter: Statementstmt 64.2% 18 / 28 Branchbran 10.0% 1 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 6 / 12 Podpod 42.8% 3 / 7 totaltotal 49.1% 28 / 57 CC 5 SCAR 10.5
CC
5
Cov
50%
id
4.5
name
4.5
position
4.5
CRAP 2.9
« blib/lib/WWW/Shopify/Model/CustomerGroup.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/ClientDetails.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;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package WWW::Shopify::Model::Product::Option;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 17 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
12 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 "name" => new WWW::Shopify::Field::String::Words(1),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "position" => new WWW::Shopify::Field::Int(1, 3),
16 "product_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Product')
17 }; }
18  
19 0 ▶sub creation_minimal { return qw(name); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub creation_filled { return qw(id position); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine id: not called CC=2 SCAR=14.9
Subroutine name: not called CC=2 SCAR=14.9
Subroutine position: not called CC=2 SCAR=14.9
Subroutine product_id: not called CC=2 SCAR=14.9
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 5 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
23  
24 1 1
« blib/lib/WWW/Shopify/Model/CustomerGroup.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/ClientDetails.pm »