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

filter: Statementstmt 58.0% 18 / 31 Branchbran 6.2% 1 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 6 / 11 Podpod 16.6% 1 / 6 totaltotal 40.6% 26 / 64 CC 8 SCAR 18.0
CC
8
Cov
40%
tax_lines
15.8
code
4.9
price
4.9
CRAP 6.0
« blib/lib/WWW/Shopify/Model/Cart.pm ↑ Summary blib/lib/WWW/Shopify/Model/NestedItem.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 ▶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
22  
23 1 1;
« blib/lib/WWW/Shopify/Model/Cart.pm ↑ Summary blib/lib/WWW/Shopify/Model/NestedItem.pm »