| 1 | package Parallel::ForkManager::Child; | ||||||||||||
| 2 | 121 | our $AUTHORITY = 'cpan:DLUX'; | |||||||||||
| 3 | # ABSTRACT: role adopted by forked Parallel::ForkManager processes | ||||||||||||
| 4 | 121 | $Parallel::ForkManager::Child::VERSION = '2.04'; | |||||||||||
| 5 | |||||||||||||
| 6 | |||||||||||||
| 7 | 121 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 121 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | 121 | ▶ | use Carp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | |||||||||||||
| 12 | 121 | ▶ | use Moo::Role; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 0 | ▶ | sub is_child { 1 } | ||||||||||
|
Subroutine
is_child: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 15 | 0 | ▶ | sub is_parent { 0 } | ||||||||||
|
Subroutine
is_parent: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 16 | |||||||||||||
| 17 | 0 | ▶ | sub start { | ||||||||||
|
Subroutine
start: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 18 | 0 | croak "Cannot start another process while you are in the child process"; | |||||||||||
| 19 | } | ||||||||||||
| 20 | |||||||||||||
| 21 | 108 | ▶ | sub finish { | ||||||||||
|
Subroutine
finish: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 22 | 108 | my ($s, $x, $r)=@_; | |||||||||||
| 23 | |||||||||||||
| 24 | 108 | $s->store($r); | |||||||||||
| 25 | |||||||||||||
| 26 | 108 | ▶ | CORE::exit($x || 0); | ||||||||||
|
Condition100%2/2
$x || 0
MC/DC100%1/1
$x || 0
$x
Truth table100%2/2
A
A= $x
| |||||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 121 | 1; | |||||||||||
| 30 | |||||||||||||
| 31 | __END__ | ||||||||||||