blib/lib/WWW/Shopify/Model/CustomCollection/Image.pm

filter: Statementstmt 66.6% 18 / 27 Branchbran 12.5% 1 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 6 / 12 Podpod 57.1% 4 / 7 totaltotal 53.7% 29 / 54 CC 4 SCAR 9.0
CC
4
Cov
54%
attachment
4.1
created_at
4.1
src
4.1
CRAP 2.5
« blib/lib/WWW/Shopify/Model/LocaleTranslation.pm ↑ Summary blib/lib/WWW/Shopify/Model/Redirect.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::CustomCollection::Image;
9 1 ▶use parent "WWW::Shopify::Model::NestedItem";
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 12 ▶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 "src" => new WWW::Shopify::Field::String::URL::Shopify(),
15 "attachment" => new WWW::Shopify::Field::String::Base64()
16 }; }
17 0 ▶sub get_fields { return qw(created_at src); }
Subroutine get_fields: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub creation_minimal { return qw(attachment); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub creation_filled { return qw(src created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
20  
21 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine attachment: not called CC=2 SCAR=14.2
Subroutine created_at: not called CC=2 SCAR=14.2
Subroutine src: not called CC=2 SCAR=14.2
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 4 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
22  
23 1 1;
« blib/lib/WWW/Shopify/Model/LocaleTranslation.pm ↑ Summary blib/lib/WWW/Shopify/Model/Redirect.pm »