File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/BenchAdditionalValues.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Tapper::Schema::TestrunDB::Result::BenchAdditionalValues;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::BenchAdditionalValues::VERSION = '5.0.9';
4             # ABSTRACT: Tapper - additional values for benchmark data point
5              
6 7     7   2879 use strict;
  7         9  
  7         166  
7 7     7   22 use warnings;
  7         9  
  7         142  
8              
9 7     7   21 use parent 'DBIx::Class';
  7         7  
  7         24  
10              
11             __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12             __PACKAGE__->table('bench_additional_values');
13             __PACKAGE__->add_columns(
14             'bench_additional_value_id', {
15             data_type => 'INT',
16             default_value => undef,
17             is_nullable => 0,
18             size => 11,
19             is_auto_increment => 1,
20             extra => {
21             unsigned => 1,
22             },
23             },
24             'bench_additional_type_id', {
25             data_type => 'SMALLINT',
26             default_value => undef,
27             is_nullable => 0,
28             size => 6,
29             is_foreign_key => 1,
30             extra => {
31             unsigned => 1,
32             },
33             },
34             'bench_additional_value', {
35             data_type => 'VARCHAR',
36             default_value => undef,
37             is_nullable => 0,
38             size => 767,
39             },
40             'created_at', {
41             data_type => 'TIMESTAMP',
42             default_value => undef,
43             is_nullable => 0,
44             set_on_create => 1,
45             },
46             );
47              
48             (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
49              
50             __PACKAGE__->set_primary_key('bench_additional_value_id');
51             __PACKAGE__->add_unique_constraint(
52             'ux_bench_additional_values_01' => ['bench_additional_type_id','bench_additional_value'],
53             );
54             __PACKAGE__->belongs_to(
55             bench_additional_type => "${basepkg}::BenchAdditionalTypes", { 'foreign.bench_additional_type_id' => 'self.bench_additional_type_id' },
56             );
57             __PACKAGE__->has_many(
58             bench_additional_relations => "${basepkg}::BenchAdditionalRelations", { 'foreign.bench_additional_value_id' => 'self.bench_additional_value_id' },
59             );
60              
61             1;
62              
63             __END__
64              
65             =pod
66              
67             =encoding UTF-8
68              
69             =head1 NAME
70              
71             Tapper::Schema::TestrunDB::Result::BenchAdditionalValues - Tapper - additional values for benchmark data point
72              
73             =head1 AUTHORS
74              
75             =over 4
76              
77             =item *
78              
79             AMD OSRC Tapper Team <tapper@amd64.org>
80              
81             =item *
82              
83             Tapper Team <tapper-ops@amazon.com>
84              
85             =back
86              
87             =head1 COPYRIGHT AND LICENSE
88              
89             This software is Copyright (c) 2017 by Advanced Micro Devices, Inc..
90              
91             This is free software, licensed under:
92              
93             The (two-clause) FreeBSD License
94              
95             =cut