line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Scenario; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Scenario::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Grouping of interdependent tests |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3090
|
use 5.010; |
|
7
|
|
|
|
|
18
|
|
7
|
7
|
|
|
7
|
|
24
|
use strict; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
109
|
|
8
|
7
|
|
|
7
|
|
23
|
use warnings; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
148
|
|
9
|
|
|
|
|
|
|
|
10
|
7
|
|
|
7
|
|
107
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
29
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->load_components("InflateColumn::Object::Enum", "Core"); |
13
|
|
|
|
|
|
|
__PACKAGE__->table("scenario"); |
14
|
|
|
|
|
|
|
__PACKAGE__->add_columns |
15
|
|
|
|
|
|
|
( |
16
|
|
|
|
|
|
|
"id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, |
17
|
|
|
|
|
|
|
"type", { data_type => "VARCHAR", default_value => "", is_nullable => 0, size => 255, }, |
18
|
|
|
|
|
|
|
"options", { data_type => "TEXT", default => undef, is_nullable => 1, }, |
19
|
|
|
|
|
|
|
"name", { data_type => "VARCHAR", is_nullable => 1, size => 255, }, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key(qw/id/); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__PACKAGE__->inflate_column( |
25
|
|
|
|
|
|
|
options => { |
26
|
|
|
|
|
|
|
inflate => sub { |
27
|
|
|
|
|
|
|
require YAML::XS; |
28
|
|
|
|
|
|
|
YAML::XS::Load(shift); |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
deflate => sub { |
31
|
|
|
|
|
|
|
require YAML::XS; |
32
|
|
|
|
|
|
|
YAML::XS::Dump(shift); |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__PACKAGE__->has_many ( scenario_elements => "${basepkg}::ScenarioElement", { 'foreign.scenario_id' => 'self.id' }); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=encoding UTF-8 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 NAME |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Scenario - Tapper - Grouping of interdependent tests |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHORS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=over 4 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item * |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=back |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This is free software, licensed under: |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |