| 1 | ## no critic (RequireUseStrict) | ||||||||||||
| 2 | package Tapper::Producer::DummyProducer; | ||||||||||||
| 3 | 1 | our $AUTHORITY = 'cpan:TAPPER'; | |||||||||||
| 4 | 1 | $Tapper::Producer::DummyProducer::VERSION = '5.0.1'; | |||||||||||
| 5 | 1 | ▶ | use Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | |||||||||||||
| 8 | 0 | ▶ | sub produce { | ||||||||||
|
Subroutine
produce: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 9 | 0 | my ($self, $job, $precondition) = @_; | |||||||||||
| 10 | |||||||||||||
| 11 | 0 | ▶ | die "Need a TestrunScheduling object in producer" | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 12 | unless ref($job) eq 'Tapper::Schema::TestrunDB::Result::TestrunScheduling'; | ||||||||||||
| 13 | 0 | ▶ | my $type = $precondition->{options}{type} || 'no_option'; | ||||||||||
|
Condition0%0/2
$precondition->{'options'}{'type'} || 'no_option'
MC/DC0%0/1
$precondition->{'options'}{'type'} || 'no_option'
$precondition->{'options'}{'type'}
Truth table0%0/2
A
A= $precondition->{'options'}{'type'}
| |||||||||||||
| 14 | return { | ||||||||||||
| 15 | 0 | precondition_yaml => "---\nprecondition_type: $type\n---\nprecondition_type: second\n", | |||||||||||
| 16 | topic => 'new_topic', | ||||||||||||
| 17 | }; | ||||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | 1 | 1; | |||||||||||
| 21 | |||||||||||||
| 22 | __END__ | ||||||||||||