blib/lib/WWW/Shopify/Model/Order/ShippingLine.pm

filter: Statementstmt 56.2% 18 / 32 Branchbran 6.2% 1 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 6 / 12 Podpod 14.2% 1 / 7 totaltotal 38.8% 26 / 67 CC 8 SCAR 17.6
CC
8
Cov
40%
tax_lines
15.8
code
4.9
price
4.9
CRAP 5.8
« blib/lib/WWW/Shopify/Model/NestedItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/Customer.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::Order::ShippingLine;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 20 ▶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 "code" => new WWW::Shopify::Field::String::Words(1, 3),
14 "price" => new WWW::Shopify::Field::Money(),
15 "source" => new WWW::Shopify::Field::String("shopify"),
16 "title" => new WWW::Shopify::Field::String::Words(1, 3) ,
17 "tax_lines" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Order::ShippingLine::TaxLine')
18 };
19 }
20  
21 0 ▶sub identifier { return ("code"); }
Subroutine identifier: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine code: not called CC=2 SCAR=16.0
Subroutine price: not called CC=2 SCAR=16.0
Subroutine source: not called CC=2 SCAR=16.0
Subroutine tax_lines: not called CC=4 SCAR=27.6
Subroutine title: not called CC=2 SCAR=16.0
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 8 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]{"tax_lines"} 0 0 0
if wantarray 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
24  
25 1 1;
« blib/lib/WWW/Shopify/Model/NestedItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/Customer.pm »