Supervisor/Supervised/Proc.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 92.5% 25 / 27 CC 2 SCAR 3.4
CC
2
Cov
95%
is_abnormal_exit
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Supervisor/Handle.pm ↑ Summary Supervisor/Handle/Interface.pm »
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
!ll&&!rl&&r
012111
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
ABresult
0X0
100
111
21 }
22  
23 25 __PACKAGE__->meta->make_immutable;
24  
25 __END__
« Supervisor/Handle.pm ↑ Summary Supervisor/Handle/Interface.pm »