blib/lib/WWW/Shopify/Model/LinkList.pm

filter: Statementstmt 50.0% 18 / 36 Branchbran 7.1% 1 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 35.2% 6 / 17 Podpod 58.3% 7 / 12 totaltotal 40.5% 32 / 79 CC 7 SCAR 15.6
CC
7
Cov
38%
links
15.2
handle
4.8
id
4.8
CRAP 4.8
« blib/lib/WWW/Shopify/Exception.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product/Variant.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::LinkList;
9 1 ▶use parent "WWW::Shopify::Model::Item";
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 "handle" => new WWW::Shopify::Field::String::Handle(),
14 "title" => new WWW::Shopify::Field::String(),
15 "id" => new WWW::Shopify::Field::Identifier(),
16 # "default" => new WWW::Shopify::Field::Boolean(),
17 "links" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::LinkList::Link")
18 }; }
19  
20 0 ▶sub singular { return "link_list"; }
Subroutine singular: not called CC=1 SCAR=6.9
Pod documented
21 0 ▶sub countable { return undef; }
Subroutine countable: not called CC=1 SCAR=6.9
Pod documented
22  
23 0 ▶sub creation_minimal { return qw(handle); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub creation_filled { return qw(id); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
25 0 ▶sub update_fields { return qw(handle title links); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
26 0 ▶sub update_filled { return qw(); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub needs_login { return 1; }
Subroutine needs_login: not called CC=1 SCAR=6.9
Pod undocumented
29  
30 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine handle: not called CC=2 SCAR=15.7
Subroutine id: not called CC=2 SCAR=15.7
Subroutine links: not called CC=4 SCAR=27.2
Subroutine title: not called CC=2 SCAR=15.7
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 7 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"links"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
31  
32 1 1;
« blib/lib/WWW/Shopify/Exception.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product/Variant.pm »