line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
## no critic (RequireUseStrict) |
2
|
|
|
|
|
|
|
package Tapper::Producer::DummyProducer; |
3
|
|
|
|
|
|
|
BEGIN { |
4
|
1
|
|
|
1
|
|
39630
|
$Tapper::Producer::DummyProducer::AUTHORITY = 'cpan:TAPPER'; |
5
|
|
|
|
|
|
|
} |
6
|
|
|
|
|
|
|
{ |
7
|
|
|
|
|
|
|
$Tapper::Producer::DummyProducer::VERSION = '4.1.3'; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
481
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub produce { |
14
|
|
|
|
|
|
|
my ($self, $job, $precondition) = @_; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
die "Need a TestrunScheduling object in producer" |
17
|
|
|
|
|
|
|
unless ref($job) eq 'Tapper::Schema::TestrunDB::Result::TestrunScheduling'; |
18
|
|
|
|
|
|
|
my $type = $precondition->{options}{type} || 'no_option'; |
19
|
|
|
|
|
|
|
return { |
20
|
|
|
|
|
|
|
precondition_yaml => "---\nprecondition_type: $type\n---\nprecondition_type: second\n", |
21
|
|
|
|
|
|
|
topic => 'new_topic', |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding utf-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Tapper::Producer::DummyProducer |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 produce |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Produce resulting precondition. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This software is Copyright (c) 2013 by Advanced Micro Devices, Inc.. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This is free software, licensed under: |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |