line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::State; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::State::VERSION = '5.0.11'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Containg states for testrun's |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3163
|
use strict; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
175
|
|
7
|
7
|
|
|
7
|
|
30
|
use warnings; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
157
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
32
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
31
|
|
10
|
7
|
|
|
7
|
|
331
|
use YAML::Syck; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
1766
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime InflateColumn::Object::Enum Core/); |
13
|
|
|
|
|
|
|
__PACKAGE__->table("state"); |
14
|
|
|
|
|
|
|
__PACKAGE__->add_columns |
15
|
|
|
|
|
|
|
( "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, |
16
|
|
|
|
|
|
|
"testrun_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, }, |
17
|
|
|
|
|
|
|
"state", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 65000, }, |
18
|
|
|
|
|
|
|
"created_at", { data_type => "TIMESTAMP", default_value => \'CURRENT_TIMESTAMP', is_nullable => 1, }, |
19
|
|
|
|
|
|
|
"updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 1, }, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
__PACKAGE__->inflate_column( state => { |
22
|
|
|
|
|
|
|
inflate => sub { Load(shift) }, |
23
|
|
|
|
|
|
|
deflate => sub { Dump(shift)}, |
24
|
|
|
|
|
|
|
}); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
30
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( unique_testrun_id => [ qw/testrun_id/ ], ); |
31
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( testrun => "${basepkg}::Testrun", { 'foreign.id' => 'self.testrun_id' }); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=encoding UTF-8 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::State - Tapper - Containg states for testrun's |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHORS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=over 4 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item * |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=back |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is free software, licensed under: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |