File Coverage

blib/lib/PLS/Server/Request/Shutdown.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 24 25 96.0


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   45 use warnings;
  9         18  
  9         205  
4 9     9   44  
  9         18  
  9         178  
5             use parent 'PLS::Server::Request';
6 9     9   36  
  9         18  
  9         43  
7             use PLS::Server::State;
8 9     9   439 use PLS::Server::Response::Shutdown;
  9         18  
  9         167  
9 9     9   2956  
  9         26  
  9         529  
10             =head1 NAME
11              
12             PLS::Server::Request::Shutdown
13              
14             =head1 DESCRIPTION
15              
16             This is a notification message from the client to the server requesting
17             that the server shuts down.
18              
19             =cut
20              
21             {
22             my ($self) = @_;
23              
24 1     1 0 12 $PLS::Server::State::SHUTDOWN = 1;
25             return PLS::Server::Response::Shutdown->new($self);
26 1         7 } ## end sub service
27 1         25  
28             1;