blib/lib/WWW/Shopify/Field/Identifier.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 5 / 10 Podpod 0.0% 0 / 3 totaltotal 61.7% 21 / 34 CC 1 SCAR 4.1
CC
1
Cov
76%
sql_type
2.0
data_type
2.0
generate
2.0
CRAP 1.5
« blib/lib/WWW/Shopify/Model/Refund/Transaction.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/DiscountCode.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::Field;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package WWW::Shopify::Field::Identifier;
9 1 ▶use parent 'WWW::Shopify::Field';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 0 ▶sub sql_type { return "bigint"; }
Subroutine sql_type: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub data_type { return WWW::Shopify::Field->TYPE_QUANTITATIVE; }
Subroutine data_type: not called CC=1 SCAR=6.9
Pod undocumented
12 sub generate($) {
13 0 ▶ return int(rand(100000000))+1;
Subroutine generate: not called CC=1 SCAR=6.9
Pod undocumented
14 }
15  
16 package WWW::Shopify::Field::Identifier::String;
17 1 ▶use parent 'WWW::Shopify::Field';
Subroutine BEGIN: called CC=1 SCAR=0.0
18 0 ▶sub sql_type { return "varchar(255)"; }
Subroutine sql_type: not called CC=1 SCAR=6.9
19 0 ▶sub data_type { return WWW::Shopify::Field->TYPE_QUALITATIVE; }
Subroutine data_type: not called CC=1 SCAR=6.9
20  
21 1 1;
« blib/lib/WWW/Shopify/Model/Refund/Transaction.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/DiscountCode.pm »