blib/lib/PLS/Server/Request/Exit.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.0% 24 / 25 CC 2 SCAR 2.9
CC
2
Cov
100%
service
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/PLS/Server/Request.pm ↑ Summary blib/lib/PLS/Parser/Element/Constant.pm »
1 package PLS::Server::Request::Exit;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 ▶use parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 13 ▶use PLS::Server::State;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 PLS::Server::Request::Exit
13  
14 =head1 DESCRIPTION
15  
16 This is a notification message from the client to the server requesting
17 that the server exits.
18  
19 =cut
20  
21 sub service
22 2 ▶{
Subroutine service: called CC=2 SCAR=6.9
Pod undocumented
23 2 my ($self, $server) = @_;
24  
25 2 ▶ my $exit_code = $PLS::Server::State::SHUTDOWN ? 0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$PLS::Server::State::SHUTDOWN ? : 1 1 2
26 2 $server->stop($exit_code);
27  
28 2 return;
29 } ## end sub service
30  
31 13 1;
« blib/lib/PLS/Server/Request.pm ↑ Summary blib/lib/PLS/Parser/Element/Constant.pm »