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

filter: Statementstmt 66.6% 18 / 27 Branchbran 10.0% 1 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 6 / 11 Podpod 33.3% 2 / 6 totaltotal 50.0% 27 / 54 CC 5 SCAR 10.7
CC
5
Cov
51%
id
4.5
line_item
4.5
line_item_id
4.5
CRAP 2.9
« blib/lib/WWW/Shopify/Model/Theme.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/ShippingLine/TaxLine.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::LineItem;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 19 ▶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 "id" => new WWW::Shopify::Field::Identifier(),
14 "line_item" => new WWW::Shopify::Field::Relation::OwnOne('WWW::Shopify::Model::Order::LineItem'),
15 "line_item_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Order::LineItem'),
16 "quantity" => new WWW::Shopify::Field::Int(),
17 }; }
18  
19 0 ▶sub singular() { return 'line_item'; }
Subroutine singular: not called CC=1 SCAR=6.9
Pod documented
20  
21 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine id: not called CC=2 SCAR=14.9
Subroutine line_item: not called CC=2 SCAR=14.9
Subroutine line_item_id: not called CC=2 SCAR=14.9
Subroutine quantity: not called CC=2 SCAR=14.9
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 5 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 $@ 0 1 1
22  
23 1 1
« blib/lib/WWW/Shopify/Model/Theme.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/ShippingLine/TaxLine.pm »