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

filter: Statementstmt 72.0% 18 / 25 Branchbran 16.6% 1 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 6 / 11 Podpod 66.6% 4 / 6 totaltotal 60.4% 29 / 48 CC 3 SCAR 7.2
CC
3
Cov
61%
amount
3.7
code
3.7
creatable
2.0
CRAP 2.1
« blib/lib/WWW/Shopify/Model/Order/NoteAttributes.pm ↑ Summary blib/lib/WWW/Shopify/Model/ProductSearchEngine.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::DiscountCode;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 9 ▶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("[A-Z][0-9]{4,10}"),
14 "amount" => new WWW::Shopify::Field::Money()};
15 }
16 0 ▶sub creatable { return undef; }
Subroutine creatable: not called CC=1 SCAR=6.9
Pod documented
17 0 ▶sub updatable { return undef; }
Subroutine updatable: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub deletable { return undef; }
Subroutine deletable: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine amount: not called CC=2 SCAR=13.0
Subroutine code: not called CC=2 SCAR=13.0
Pod undocumented
Pod undocumented
Branch: 3 branches
BranchTrueFalseTotal
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/Order/NoteAttributes.pm ↑ Summary blib/lib/WWW/Shopify/Model/ProductSearchEngine.pm »