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

filter: Statementstmt 80.9% 17 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 6 / 10 Podpod 0.0% 0 / 3 totaltotal 67.6% 23 / 34 CC 1 SCAR 3.4
CC
1
Cov
81%
sql_type
2.0
data_type
2.0
sql_type
2.0
CRAP 1.4
« blib/lib/WWW/Shopify/Field/String.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 1 ▶ return int(rand(100000000))+1;
Subroutine generate: called CC=1 SCAR=0.0
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/Field/String.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/DiscountCode.pm »