| 1 | package POE::Component::Supervisor::Supervised::Proc; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 25 | our $VERSION = '0.09'; | |||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 25 | ▶ | use Moose; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 25 | ▶ | use POE::Component::Supervisor::Handle::Proc; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 25 | ▶ | use namespace::autoclean; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 25 | with qw(POE::Component::Supervisor::Supervised); | |||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 25 | has '+handle_class' => ( default => "POE::Component::Supervisor::Handle::Proc" ); | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 25 | __PACKAGE__->_inherit_attributes_from_handle_class; | |||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 123 | ▶ | sub is_abnormal_exit { | ||||||||||||||||||
|
Subroutine
is_abnormal_exit: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||
| 16 | 123 | my ( $self, %args ) = @_; | |||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 123 | my $exit_code = $args{exit_code}; | |||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 123 | ▶ | return ( defined($exit_code) and $exit_code != 0 ); | ||||||||||||||||||
|
Condition66%2/3
defined $exit_code && $exit_code != 0
MC/DC50%1/2
defined $exit_code && $exit_code != 0
defined $exit_code
$exit_code != 0
Truth table66%2/3
A && B
A= defined $exit_codeB= $exit_code != 0
| |||||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 25 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||