Fake/Child.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 67.8% 19 / 28 CC 3 SCAR 17.4
CC
3
Cov
64%
runtest_handling
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« Fake/Testmachine.pm ↑ Summary Fake.pm »
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
BranchTrueFalseTotal
if ($precondition->precondition_as_hash->{"precondition_type"} eq "testprogram") 0 0 0
25 0 sleep $precondition->precondition_as_hash->{timeout};
26 }
27 }
28 0 return 0;
29  
30 }
31  
32 2 1;
33  
34 __END__
« Fake/Testmachine.pm ↑ Summary Fake.pm »