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

filter: Statementstmt 36.7% 18 / 49 Branchbran 3.5% 1 / 28 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 6 / 24 Podpod 26.3% 5 / 19 totaltotal 25.0% 30 / 120 CC 14 SCAR 14.4
CC
14
Cov
25%
api_key
5.4
api_permissions_count
5.4
api_url
5.4
CRAP 4.2
« blib/lib/WWW/Shopify/Model/Location.pm ↑ Summary blib/lib/WWW/Shopify/Model/ApplicationCharge.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::APIClient;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 44 ▶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 "api_key" => new WWW::Shopify::Field::String::Hash(),
14 "api_permissions_count" => new WWW::Shopify::Field::Int(),
15 "api_url" => new WWW::Shopify::Field::String::URL(),
16 "created_at" => new WWW::Shopify::Field::Date(),
17 "embedded" => new WWW::Shopify::Field::Boolean(),
18 "id" => new WWW::Shopify::Field::Identifier(),
19 "kind" => new WWW::Shopify::Field::String::Enum(["public", "private"]),
20 "number" => new WWW::Shopify::Field::Int(),
21 "shared_secret" => new WWW::Shopify::Field::String::Hash(),
22 "support_url" => new WWW::Shopify::Field::String::URL(),
23 "title" => new WWW::Shopify::Field::String::Words(2),
24 "visible" => new WWW::Shopify::Field::Boolean(),
25 "application_developer" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Shop")
26 }; }
27  
28 0 ▶sub singular { return "api_client"; }
Subroutine singular: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub needs_login { return 1; }
Subroutine needs_login: not called CC=1 SCAR=6.9
Pod undocumented
30 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
31 0 ▶sub countable { return undef; }
Subroutine countable: not called CC=1 SCAR=6.9
Pod documented
32  
33  
34 0 ▶sub creation_filled { return qw(id created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine api_key: not called CC=2 SCAR=16.8
Subroutine api_permissions_count: not called CC=2 SCAR=16.8
Subroutine api_url: not called CC=2 SCAR=16.8
Subroutine application_developer: not called CC=2 SCAR=16.8
Subroutine created_at: not called CC=2 SCAR=16.8
Subroutine embedded: not called CC=2 SCAR=16.8
Subroutine id: not called CC=2 SCAR=16.8
Subroutine kind: not called CC=2 SCAR=16.8
Subroutine number: not called CC=2 SCAR=16.8
Subroutine shared_secret: not called CC=2 SCAR=16.8
Subroutine support_url: not called CC=2 SCAR=16.8
Subroutine title: not called CC=2 SCAR=16.8
Subroutine visible: not called CC=2 SCAR=16.8
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 14 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 defined $_[1] 0 0 0
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 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
37  
38 1 1;
« blib/lib/WWW/Shopify/Model/Location.pm ↑ Summary blib/lib/WWW/Shopify/Model/ApplicationCharge.pm »