TableData/Business/ID/BPOM/FoodCategory.pm

filter: Statementstmt 83.7% 31 / 37 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod n/a totaltotal 84.7% 39 / 46 SCAR 0.0
CC
1
Cov
84%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary TableData/Business/ID/BPOM/FoodType.pm »
1 package ## no critic: Modules::RequireFilenameMatchesPackage
2 # hide from PAUSE
3 TableDataRole::Business::ID::BPOM::FoodCategory;
4  
5 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 with 'TableDataRole::Source::AOA';
11  
12 around new => sub {
13 0 ▶ require App::BPOMUtils::Table;
Subroutine __ANON__: not called CC=1 SCAR=6.9
14  
15 0 my $orig = shift;
16 0 my $self = shift;
17  
18 $orig->(
19 $self,
20 column_names => [ sort {
21 $App::BPOMUtils::Table::meta_idn_bpom_kategori_pangan->{fields}{$a}{pos} <=>
22 0 $App::BPOMUtils::Table::meta_idn_bpom_kategori_pangan->{fields}{$b}{pos};
23 0 } keys %{ $App::BPOMUtils::Table::meta_idn_bpom_kategori_pangan->{fields} } ],
24 aoa => $App::BPOMUtils::Table::data_idn_bpom_kategori_pangan,
25 @_,
26 );
27 1 };
28  
29 package TableData::Business::ID::BPOM::FoodCategory;
30  
31 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
38 1 our $DATE = '2022-10-27'; # DATE
39 1 our $DIST = 'TableDataBundle-Business-ID-BPOM'; # DIST
40 1 our $VERSION = '20221027.0.0'; # VERSION
41  
42 1 with 'TableDataRole::Business::ID::BPOM::FoodCategory';
43  
44 1 our %STATS = ("num_rows",1960,"num_columns",4); # STATS
45  
46 1 1;
47 # ABSTRACT: Food categories in BPOM processed food division
48  
49 __END__
↑ Summary TableData/Business/ID/BPOM/FoodType.pm »