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

filter: Statementstmt 39.1% 18 / 46 Branchbran 3.8% 1 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.2% 6 / 22 Podpod 23.5% 4 / 17 totaltotal 26.1% 29 / 111 CC 13 SCAR 14.3
CC
13
Cov
26%
account_owner
5.3
bio
5.3
email
5.3
CRAP 4.2
« Build ↑ Summary blib/lib/WWW/Shopify/Model/Transaction.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::User;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 39 ▶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 "account_owner" => new WWW::Shopify::Field::Boolean(),
14 "bio" => new WWW::Shopify::Field::Text(),
15 "email" => new WWW::Shopify::Field::String::Email(),
16 "first_name" => new WWW::Shopify::Field::String::FirstName(),
17 "last_name" => new WWW::Shopify::Field::String::LastName(),
18 "id" => new WWW::Shopify::Field::Identifier(),
19 "im" => new WWW::Shopify::Field::String::Email(),
20 "permissions" => new WWW::Shopify::Field::Freeform(),
21 "phone" => new WWW::Shopify::Field::String::Phone(),
22 "receive_announcements" => new WWW::Shopify::Field::Int(),
23 "url" => new WWW::Shopify::Field::String::URL(),
24 "user_type" => new WWW::Shopify::Field::String::Enum(["regular", "open_id", "restricted"])
25 }; }
26  
27 0 ▶sub requires_plus { return 1; }
Subroutine requires_plus: not called CC=1 SCAR=6.9
Pod undocumented
28 0 ▶sub creatable { return undef; }
Subroutine creatable: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub deletable { return undef; }
Subroutine deletable: not called CC=1 SCAR=6.9
Pod documented
30 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine account_owner: not called CC=2 SCAR=16.8
Subroutine bio: not called CC=2 SCAR=16.8
Subroutine email: not called CC=2 SCAR=16.8
Subroutine first_name: not called CC=2 SCAR=16.8
Subroutine id: not called CC=2 SCAR=16.8
Subroutine im: not called CC=2 SCAR=16.8
Subroutine last_name: not called CC=2 SCAR=16.8
Subroutine permissions: not called CC=2 SCAR=16.8
Subroutine phone: not called CC=2 SCAR=16.8
Subroutine receive_announcements: not called CC=2 SCAR=16.8
Subroutine url: not called CC=2 SCAR=16.8
Subroutine user_type: 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
Branch: 13 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 $@ 0 1 1
33  
34 1 1
« Build ↑ Summary blib/lib/WWW/Shopify/Model/Transaction.pm »