PLS/Server/Request/Exit.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 68.0% 17 / 25 CC 2 SCAR 9.8
CC
2
Cov
68%
service
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« PLS/Server/Response/RangeFormatting.pm ↑ Summary PLS/Server/Request/Initialize.pm »
1 package PLS::Server::Request::Exit;
2  
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 ▶use parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 9 ▶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 {
23 0 ▶ my ($self, $server) = @_;
Subroutine service: not called CC=2 SCAR=17.9
Pod undocumented
24  
25 0 ▶ my $exit_code = $PLS::Server::State::SHUTDOWN ? 0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$PLS::Server::State::SHUTDOWN ? : 0 0 0
26 0 $server->stop($exit_code);
27  
28 0 return;
29 } ## end sub service
30  
31 9 1;
« PLS/Server/Response/RangeFormatting.pm ↑ Summary PLS/Server/Request/Initialize.pm »