blib/lib/WWW/Shopify/Model/Cart.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%
line_items
15.8
id
4.9
note
4.9
CRAP 6.0
« blib/lib/WWW/Shopify/Model/SmartCollection.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::Cart;
9 1 ▶use parent 'WWW::Shopify::Model::Item';
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 "note" => new WWW::Shopify::Field::String::Words(1, 20),
14 "token" => new WWW::Shopify::Field::String::Hash(),
15 "line_items" => new WWW::Shopify::Field::Relation::Many('WWW::Shopify::Model::Cart::LineItem', 0, 10),
16 "id" => new WWW::Shopify::Field::Identifier(),
17 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now')
18 }; }
19  
20 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine id: not called CC=2 SCAR=16.0
Subroutine line_items: not called CC=4 SCAR=27.6
Subroutine note: not called CC=2 SCAR=16.0
Subroutine token: not called CC=2 SCAR=16.0
Subroutine updated_at: 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
unless defined $_[0]{"line_items"} 0 0 0
if wantarray 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
21  
22 1 1;
« blib/lib/WWW/Shopify/Model/SmartCollection.pm ↑ Summary blib/lib/WWW/Shopify/Model/NestedItem.pm »