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

filter: Statementstmt 36.7% 18 / 49 Branchbran 3.8% 1 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 24.0% 6 / 25 Podpod 30.0% 6 / 20 totaltotal 25.8% 31 / 120 CC 13 SCAR 13.9
CC
13
Cov
25%
amount
5.3
authorization
5.3
created_at
5.3
CRAP 4.0
« blib/lib/WWW/Shopify/Model/User.pm ↑ Summary blib/lib/WWW/Shopify/Model/Page.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::Transaction;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub parent { return "WWW::Shopify::Model::Order"; }
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
12 43 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
13 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
14 "amount" => new WWW::Shopify::Field::Money(),
15 "kind" => new WWW::Shopify::Field::String::Enum(["capture", "authorization", "sale", "void", "refund"]),
16 "id" => new WWW::Shopify::Field::Identifier(),
17 "status" => new WWW::Shopify::Field::String::Enum(["success", "failure", "error"]),
18 "receipt" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Transaction::Receipt"),
19 "created_at" => new WWW::Shopify::Field::Date(),
20 "authorization" => new WWW::Shopify::Field::String(),
21 "gateway" => new WWW::Shopify::Field::String::Enum(["bogus", "real"]),
22 "order_id" => new WWW::Shopify::Field::Relation::Parent('WWW::Shopify::Model::Order'),
23 "test" => new WWW::Shopify::Field::Boolean(),
24 "user_id" => new WWW::Shopify::Field::String(),
25 "device_id" => new WWW::Shopify::Field::String() };
26 }
27 0 ▶sub creation_minimal { return qw(path target); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
28 0 ▶sub creation_filled { return qw(id created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub update_fields { return qw(amount kind); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
30  
31 0 ▶sub read_scope { return "read_orders"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub write_scope { return "write_orders"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
33  
34 0 ▶sub included_in_parent { return 0; }
Subroutine included_in_parent: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine amount: not called CC=2 SCAR=16.8
Subroutine authorization: not called CC=2 SCAR=16.8
Subroutine created_at: not called CC=2 SCAR=16.8
Subroutine device_id: not called CC=2 SCAR=16.8
Subroutine gateway: 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 order_id: not called CC=2 SCAR=16.8
Subroutine receipt: not called CC=2 SCAR=16.8
Subroutine status: not called CC=2 SCAR=16.8
Subroutine test: not called CC=2 SCAR=16.8
Subroutine user_id: 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
37  
38 1 1
« blib/lib/WWW/Shopify/Model/User.pm ↑ Summary blib/lib/WWW/Shopify/Model/Page.pm »