Tapper/Schema/TestrunDB/Result/BenchSubsumeTypes.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tapper/Schema/TestrunDB/Result/BenchBackupValues.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchUnits.pm »
1 package Tapper::Schema::TestrunDB::Result::BenchSubsumeTypes;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::BenchSubsumeTypes::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - types of subsume values
5  
6 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12 10 __PACKAGE__->table('bench_subsume_types');
13 10 __PACKAGE__->add_columns(
14 'bench_subsume_type_id', {
15 data_type => 'SMALLINT',
16 default_value => undef,
17 is_nullable => 0,
18 size => 6,
19 is_auto_increment => 1,
20 extra => {
21 unsigned => 1,
22 },
23 },
24 'bench_subsume_type', {
25 data_type => 'VARCHAR',
26 default_value => undef,
27 is_nullable => 0,
28 size => 32,
29 },
30 'bench_subsume_type_rank', {
31 data_type => 'TINYINT',
32 default_value => undef,
33 is_nullable => 0,
34 size => 4,
35 },
36 'datetime_strftime_pattern', {
37 data_type => 'VARCHAR',
38 default_value => undef,
39 is_nullable => 1,
40 size => 32,
41 },
42 'created_at', {
43 data_type => 'TIMESTAMP',
44 default_value => undef,
45 is_nullable => 0,
46 set_on_create => 1,
47 },
48 );
49  
50  
51 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
52  
53 10 __PACKAGE__->set_primary_key('bench_subsume_type_id');
54 10 __PACKAGE__->add_unique_constraint(
55 'ux_bench_subsume_types_01' => ['bench_subsume_type'],
56 );
57  
58 10 __PACKAGE__->has_many (
59 bench_value => "${basepkg}::BenchValues", { 'foreign.bench_subsume_type_id' => 'self.bench_subsume_type_id' },
60 );
61 10 __PACKAGE__->has_many (
62 bench_backup_value => "${basepkg}::BenchBackupValues", { 'foreign.bench_subsume_type_id' => 'self.bench_subsume_type_id' },
63 );
64  
65 10 1;
66  
67 __END__
« Tapper/Schema/TestrunDB/Result/BenchBackupValues.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchUnits.pm »