Producer/DummyProducer.pm

filter: Statementstmt 60.0% 6 / 10 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 44.4% 8 / 18 CC 3 SCAR 22.2
CC
3
Cov
43%
produce
12.0
BEGIN
1.0
CRAP 9.2
« Producer/SimnowKernel.pm ↑ Summary Producer/NewestPackage.pm »
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
BranchTrueFalseTotal
unless ref $job eq "Tapper::Schema::TestrunDB::Result::TestrunScheduling" 0 0 0
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'
l!l
00
MC/DC0%0/1
$precondition->{'options'}{'type'} || 'no_option'
$precondition->{'options'}{'type'}
Truth table0%0/2
A
A= $precondition->{'options'}{'type'}
Aresult
11
00
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__
« Producer/SimnowKernel.pm ↑ Summary Producer/NewestPackage.pm »