File Coverage

blib/lib/Tapper/Schema/TestrunDB/Result/ChartTinyUrlRelations.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::ChartTinyUrlRelations;
2             our $AUTHORITY = 'cpan:TAPPER';
3             $Tapper::Schema::TestrunDB::Result::ChartTinyUrlRelations::VERSION = '5.0.9';
4             # ABSTRACT: Tapper - Keep static Chart Url Relations for Tapper-Reports-Web-GUI
5              
6 7     7   3006 use strict;
  7         11  
  7         174  
7 7     7   23 use warnings;
  7         8  
  7         148  
8              
9 7     7   21 use parent 'DBIx::Class';
  7         10  
  7         27  
10              
11             __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12             __PACKAGE__->table('chart_tiny_url_relations');
13             __PACKAGE__->add_columns(
14             'chart_tiny_url_line_id', {
15             data_type => 'INT',
16             default_value => undef,
17             is_nullable => 0,
18             size => 12,
19             is_foreign_key => 1,
20             extra => {
21             unsigned => 1,
22             },
23             },
24             'bench_value_id', {
25             data_type => 'INT',
26             default_value => undef,
27             is_nullable => 0,
28             size => 12,
29             is_foreign_key => 1,
30             extra => {
31             unsigned => 1,
32             },
33             },
34             );
35              
36             (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
37              
38             __PACKAGE__->set_primary_key(
39             'chart_tiny_url_line_id',
40             'bench_value_id',
41             );
42              
43             __PACKAGE__->belongs_to(
44             chart_tiny_url_line => "${basepkg}::ChartTinyUrlLines", { 'foreign.chart_tiny_url_line_id' => 'self.chart_tiny_url_line_id' },
45             );
46              
47             1;
48              
49             __END__
50              
51             =pod
52              
53             =encoding UTF-8
54              
55             =head1 NAME
56              
57             Tapper::Schema::TestrunDB::Result::ChartTinyUrlRelations - Tapper - Keep static Chart Url Relations for Tapper-Reports-Web-GUI
58              
59             =head1 AUTHORS
60              
61             =over 4
62              
63             =item *
64              
65             AMD OSRC Tapper Team <tapper@amd64.org>
66              
67             =item *
68              
69             Tapper Team <tapper-ops@amazon.com>
70              
71             =back
72              
73             =head1 COPYRIGHT AND LICENSE
74              
75             This software is Copyright (c) 2017 by Advanced Micro Devices, Inc..
76              
77             This is free software, licensed under:
78              
79             The (two-clause) FreeBSD License
80              
81             =cut