blib/lib/WWW/Shopify/Model/Webhook.pm

filter: Statementstmt 52.6% 20 / 38 Branchbran 7.1% 1 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.1% 8 / 19 Podpod 46.1% 6 / 13 totaltotal 41.6% 35 / 84 CC 7 SCAR 11.1
CC
7
Cov
40%
address
4.8
created_at
4.8
format
4.8
CRAP 3.0
« blib/lib/WWW/Shopify/Model/Order/PaymentDetails.pm ↑ Summary blib/lib/WWW/Shopify/Model/Locale/Authorship.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::Webhook;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 21 ▶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 "format" => new WWW::Shopify::Field::String("(xml|json)"),
14 "address" => new WWW::Shopify::Field::String::URL(),
15 "topic" => new WWW::Shopify::Field::String::Enum(
16 qw(
17 orders/create orders/delete orders/updated orders/paid orders/cancelled orders/fulfilled orders/partially_fulfilled carts/create
18 carts/update checkouts/create checkouts/update checkouts/delete products/create products/update
19 products/delete collections/create collections/update collections/delete customer_groups/create
20 customer_groups/update customer_groups/delete customers/create customers/enable customers/disable
21 customers/update customers/delete fulfillments/create fulfillments/update shop/update app/uninstalled
22
23 )
24 ),
25 "id" => new WWW::Shopify::Field::Identifier(),
26 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
27 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now')
28 }; }
29  
30 2 ▶my $queries; sub queries { return $queries; }
Subroutine queries: called CC=1 SCAR=0.0
Pod documented
31 1 ▶BEGIN { $queries = {
Subroutine BEGIN: called CC=1 SCAR=0.0
32 topic => new WWW::Shopify::Query::Match('topic')
33 }; }
34  
35  
36 0 ▶sub creation_minimal { return qw(address topic format); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
37 0 ▶sub creation_filled { return qw(created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub update_fields { return qw(address topic format); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
40 0 ▶sub valid_topics { return @{$_[0]->fields->{topic}->{arguments}}; }
Subroutine valid_topics: not called CC=1 SCAR=6.9
Pod undocumented
41  
42 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine address: not called CC=2 SCAR=15.8
Subroutine created_at: not called CC=2 SCAR=15.8
Subroutine format: not called CC=2 SCAR=15.8
Subroutine id: not called CC=2 SCAR=15.8
Subroutine topic: not called CC=2 SCAR=15.8
Subroutine updated_at: not called CC=2 SCAR=15.8
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 7 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 defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
43  
44 1 1
« blib/lib/WWW/Shopify/Model/Order/PaymentDetails.pm ↑ Summary blib/lib/WWW/Shopify/Model/Locale/Authorship.pm »