| 1 | package Tapper::Fake::Child; | ||||||||||
| 2 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | $Tapper::Fake::Child::AUTHORITY = 'cpan:TAPPER'; | |||||||||
| 4 | } | ||||||||||
| 5 | { | ||||||||||
| 6 | 2 | $Tapper::Fake::Child::VERSION = '4.1.1'; | |||||||||
| 7 | } | ||||||||||
| 8 | # ABSTRACT: Fake Tapper::MCP::Child for testing | ||||||||||
| 9 | |||||||||||
| 10 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 2 | ▶ | use common::sense; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 2 | ▶ | use Tapper::Model 'model'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 2 | has testrun => (is => 'rw'); | |||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | sub runtest_handling | ||||||||||
| 18 | 0 | ▶ | { | ||||||||
|
Subroutine
runtest_handling: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 19 | |||||||||||
| 20 | 0 | my ($self, $hostname) = @_; | |||||||||
| 21 | |||||||||||
| 22 | 0 | my $search = model('TestrunDB')->resultset('Testrun')->find($self->{testrun}); | |||||||||
| 23 | 0 | foreach my $precondition ($search->ordered_preconditions) { | |||||||||
| 24 | 0 | ▶ | if ($precondition->precondition_as_hash->{precondition_type} eq 'testprogram' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | sleep $precondition->precondition_as_hash->{timeout}; | |||||||||
| 26 | } | ||||||||||
| 27 | } | ||||||||||
| 28 | 0 | return 0; | |||||||||
| 29 | |||||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 2 | 1; | |||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||