Shopify/Field/Identifier.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 6 / 12 Podpod 0.0% 0 / 3 totaltotal 62.5% 25 / 40 CC 1 SCAR 4.1
CC
1
Cov
76%
sql_type
2.0
data_type
2.0
generate
2.0
CRAP 1.5
« Shopify/Model/User.pm ↑ Summary Shopify/Public.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 0 ▶sub generate($) {
Subroutine generate: not called CC=1 SCAR=6.9
Pod undocumented
13 0 return int(rand(100000000))+1;
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 1 ▶use String::Random qw(random_regex random_string);
Subroutine BEGIN: called CC=1 SCAR=0.0
19 0 ▶sub sql_type { return "varchar(255)"; }
Subroutine sql_type: not called CC=1 SCAR=6.9
20 0 ▶sub data_type { return WWW::Shopify::Field->TYPE_QUALITATIVE; }
Subroutine data_type: not called CC=1 SCAR=6.9
21  
22 0 ▶sub generate($) {
Subroutine generate: not called CC=1 SCAR=6.9
23 0 return ::random_regex('[0-9a-f]{32}');
24 }
25  
26 1 1;
« Shopify/Model/User.pm ↑ Summary Shopify/Public.pm »