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

filter: Statementstmt 62.5% 15 / 24 Branchbran 12.5% 1 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 45.4% 5 / 11 Podpod 57.1% 4 / 7 totaltotal 50.0% 25 / 50 CC 4 SCAR 9.4
CC
4
Cov
50%
attachment
4.1
created_at
4.1
src
4.1
CRAP 2.6
« blib/lib/WWW/Shopify/Model/SmartCollection/Rule.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/TaxLine.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 package WWW::Shopify::Model::SmartCollection::Image;
7 1 ▶use parent 'WWW::Shopify::Model::NestedItem';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 12 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
10 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 "created_at" => new WWW::Shopify::Field::Date(),
12 "src" => new WWW::Shopify::Field::String::URL::Shopify(),
13 "attachment" => new WWW::Shopify::Field::String::Base64()
14 }; }
15 0 ▶sub get_fields { return qw(created_at src); }
Subroutine get_fields: not called CC=1 SCAR=6.9
Pod documented
16 0 ▶sub creation_minimal { return qw(attachment); }
Subroutine creation_minimal: not called CC=1 SCAR=6.9
Pod documented
17 0 ▶sub creation_filled { return qw(src created_at); }
Subroutine creation_filled: not called CC=1 SCAR=6.9
Pod documented
18  
19 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
20  
21 1 1;
« blib/lib/WWW/Shopify/Model/SmartCollection/Rule.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/TaxLine.pm »