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

filter: Statementstmt 37.5% 18 / 48 Branchbran 4.5% 1 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 23.0% 6 / 26 Podpod 52.3% 11 / 21 totaltotal 30.7% 36 / 117 CC 11 SCAR 12.9
CC
11
Cov
27%
created_at
5.2
description
5.2
id
5.2
CRAP 3.6
« blib/lib/WWW/Shopify/Model/Asset.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product/Image.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::Metafield;
9 1 ▶use parent "WWW::Shopify::Model::Item";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 35 ▶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 "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
14 "id" => new WWW::Shopify::Field::Identifier(),
15 "owner_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Shop'),
16 "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'),
17 "owner_resource" => new WWW::Shopify::Field::String::Enum(["shop"]),
18 "description" => new WWW::Shopify::Field::String(),
19 "key" => new WWW::Shopify::Field::String(),
20 "namespace" => new WWW::Shopify::Field::String(),
21 "value_type" => new WWW::Shopify::Field::String::Enum(["integer", "float", "string"]),
22 "value" => new WWW::Shopify::Field::String()
23 }; }
24  
25 0 ▶sub get_all_through_parent { return 1; }
Subroutine get_all_through_parent: not called CC=1 SCAR=6.9
Pod documented
26 0 ▶sub get_through_parent { return 1; }
Subroutine get_through_parent: not called CC=1 SCAR=6.9
Pod documented
27 0 ▶sub create_through_parent { return 1; }
Subroutine create_through_parent: not called CC=1 SCAR=6.9
Pod documented
28 0 ▶sub update_through_parent { return 1; }
Subroutine update_through_parent: not called CC=1 SCAR=6.9
Pod documented
29 0 ▶sub delete_through_parent { return undef; }
Subroutine delete_through_parent: not called CC=1 SCAR=6.9
Pod documented
30 0 ▶sub included_in_parent { return undef; }
Subroutine included_in_parent: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub creation_minimal { return qw(key namespace value_type value); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
33 0 ▶sub creation_filled { return qw(created_at id owner_resource); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
34 0 ▶sub update_filled { return qw(updated_at); }
Subroutine update_filled: not called CC=1 SCAR=6.9
Pod documented
35 0 ▶sub update_fields { return qw(description key namespace value_type value); }
Subroutine update_fields: not called CC=1 SCAR=6.9
Pod documented
36  
37 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine created_at: not called CC=2 SCAR=16.6
Subroutine description: not called CC=2 SCAR=16.6
Subroutine id: not called CC=2 SCAR=16.6
Subroutine key: not called CC=2 SCAR=16.6
Subroutine namespace: not called CC=2 SCAR=16.6
Subroutine owner_id: not called CC=2 SCAR=16.6
Subroutine owner_resource: not called CC=2 SCAR=16.6
Subroutine updated_at: not called CC=2 SCAR=16.6
Subroutine value: not called CC=2 SCAR=16.6
Subroutine value_type: not called CC=2 SCAR=16.6
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 11 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 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
38  
39 1 1;
« blib/lib/WWW/Shopify/Model/Asset.pm ↑ Summary blib/lib/WWW/Shopify/Model/Product/Image.pm »