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

filter: Statementstmt 40.0% 18 / 45 Branchbran 4.1% 1 / 24 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 6 / 20 Podpod 40.0% 6 / 15 totaltotal 29.8% 31 / 104 CC 12 SCAR 19.1
CC
12
Cov
28%
refund_line_items
17.1
transactions
17.1
created_at
5.3
CRAP 6.7
« blib/lib/WWW/Shopify/Model/Order/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/GiftCard.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::Refund;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 30 ▶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 "created_at" => new WWW::Shopify::Field::Date(),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "note" => new WWW::Shopify::Field::String(),
16 "refund_line_items" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Refund::LineItem'),
17 "restock" => new WWW::Shopify::Field::Boolean(),
18 "transactions" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Transaction'),
19 "user_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::User')
20 }; }
21  
22 0 ▶sub parent { return 'WWW::Shopify::Model::Order'; }
Subroutine parent: not called CC=1 SCAR=6.9
Pod documented
23 0 ▶sub creatable { return undef; }
Subroutine creatable: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub countable { return undef; }
Subroutine countable: not called CC=1 SCAR=6.9
Pod documented
25 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
26 0 ▶sub deletable { return undef; }
Subroutine deletable: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub read_scope { return "read_orders"; }
Subroutine read_scope: not called CC=1 SCAR=6.9
Pod undocumented
29 0 ▶sub write_scope { return "write_orders"; }
Subroutine write_scope: not called CC=1 SCAR=6.9
Pod undocumented
30  
31 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine created_at: not called CC=2 SCAR=16.6
Subroutine id: not called CC=2 SCAR=16.6
Subroutine note: not called CC=2 SCAR=16.6
Subroutine refund_line_items: not called CC=4 SCAR=28.4
Subroutine restock: not called CC=2 SCAR=16.6
Subroutine transactions: not called CC=4 SCAR=28.4
Subroutine user_id: not called CC=2 SCAR=16.6
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 12 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
unless defined $_[0]{"refund_line_items"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
unless defined $_[0]{"transactions"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
32  
33 1 1;
« blib/lib/WWW/Shopify/Model/Order/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/GiftCard.pm »