line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Suite; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Suite::VERSION = '5.0.11'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Containing suite information |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3277
|
use strict; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
183
|
|
7
|
7
|
|
|
7
|
|
30
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
160
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
33
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
82
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components("Core"); |
12
|
|
|
|
|
|
|
__PACKAGE__->table("suite"); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns |
14
|
|
|
|
|
|
|
( |
15
|
|
|
|
|
|
|
"id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, |
16
|
|
|
|
|
|
|
"name", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, }, |
17
|
|
|
|
|
|
|
"type", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, }, |
18
|
|
|
|
|
|
|
"description", { data_type => "TEXT", default_value => undef, is_nullable => 0, }, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->has_many ( reports => 'Tapper::Schema::TestrunDB::Result::Report', { 'foreign.suite_id' => 'self.id' }); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub sqlt_deploy_hook |
28
|
|
|
|
|
|
|
{ |
29
|
7
|
|
|
7
|
1
|
10702
|
my ($self, $sqlt_table) = @_; |
30
|
7
|
|
|
|
|
37
|
$sqlt_table->add_index(name => 'suite_idx_name', fields => ['name']); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=encoding UTF-8 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Suite - Tapper - Containing suite information |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 sqlt_deploy_hook |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Add useful indexes at deploy time. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHORS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=over 4 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=back |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This is free software, licensed under: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |