line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
|
4
|
7
|
|
|
7
|
|
110
|
use 5.010; |
|
7
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
27
|
use strict; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
128
|
|
7
|
7
|
|
|
7
|
|
22
|
use warnings; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
246
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Only increment this version here on schema changes. |
10
|
|
|
|
|
|
|
# For everything else increment Tapper/Schema.pm. |
11
|
|
|
|
|
|
|
our $VERSION = '4.001043'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# avoid these warnings |
14
|
|
|
|
|
|
|
# Subroutine initialize redefined at /2home/ss5/perl510/lib/site_perl/5.10.0/Class/C3.pm line 70. |
15
|
|
|
|
|
|
|
# Subroutine uninitialize redefined at /2home/ss5/perl510/lib/site_perl/5.10.0/Class/C3.pm line 88. |
16
|
|
|
|
|
|
|
# Subroutine reinitialize redefined at /2home/ss5/perl510/lib/site_perl/5.10.0/Class/C3.pm line 101. |
17
|
|
|
|
|
|
|
# by forcing correct load order. |
18
|
7
|
|
|
7
|
|
22
|
use Class::C3; |
|
7
|
|
|
|
|
53
|
|
|
7
|
|
|
|
|
37
|
|
19
|
7
|
|
|
7
|
|
181
|
use MRO::Compat; |
|
7
|
|
|
|
|
6
|
|
|
7
|
|
|
|
|
115
|
|
20
|
|
|
|
|
|
|
|
21
|
7
|
|
|
7
|
|
2414
|
use parent 'DBIx::Class::Schema'; |
|
7
|
|
|
|
|
1467
|
|
|
7
|
|
|
|
|
27
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our $NULL = 'NULL'; |
24
|
|
|
|
|
|
|
our $DELIM = ' | '; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# __PACKAGE__->load_components(qw/+DBIx::Class::Schema::Versioned/); |
27
|
|
|
|
|
|
|
# __PACKAGE__->upgrade_directory('./lib/auto/Tapper/Schema/'); |
28
|
|
|
|
|
|
|
# __PACKAGE__->backup_directory('./lib/auto/Tapper/Schema/'); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__PACKAGE__->load_namespaces; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub backup |
34
|
|
|
|
|
|
|
{ |
35
|
|
|
|
|
|
|
#say STDERR "(TODO: Implement backup method.)"; |
36
|
0
|
|
|
0
|
0
|
|
1; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _yaml_ok { |
41
|
0
|
|
|
0
|
|
|
my ($condition) = @_; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
require YAML::Syck; |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
my @res; |
46
|
0
|
|
|
|
|
|
eval { |
47
|
0
|
|
|
|
|
|
@res = YAML::Syck::Load($condition); |
48
|
|
|
|
|
|
|
}; |
49
|
0
|
|
|
|
|
|
return $@; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=pod |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=encoding UTF-8 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 NAME |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 _yaml_ok |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Check whether given string is valid yaml. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
@param string - yaml |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
@return success - undef |
71
|
|
|
|
|
|
|
@return error - error string |
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 |