blib/lib/WWW/Shopify/Model/Checkout/LineItem.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 92.8% 26 / 28 CC 1 SCAR 0.2
CC
1
Cov
95%
fields
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/WWW/Shopify/Field/Text.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Shop.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::Checkout::LineItem;
9 1 ▶use parent 'WWW::Shopify::Model::Order::LineItem';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶my $line_item_fields; sub fields { return $line_item_fields; }
Subroutine fields: not called CC=1 SCAR=1.2
Pod documented
12 BEGIN {
13 1 ▶ my %permitted_fields = map { $_ => 1 } qw(compare_at_price fulfillment_service grams id line_price price properties quantity requires_shipping sku taxable title product_id variant_id variant_title vendor);
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 my $parent_fields = WWW::Shopify::Model::Order::LineItem->fields;
15 1 $line_item_fields = { map { $_ => $parent_fields->{$_} } grep { exists $permitted_fields{$_} } keys(%$parent_fields) };
16 }
17  
18 1 1;
« blib/lib/WWW/Shopify/Field/Text.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Shop.pm »