File Coverage

blib/lib/PLS/Server/Response/Cancelled.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   46 use warnings;
  9         18  
  9         225  
4 9     9   36  
  9         20  
  9         189  
5             use parent q(PLS::Server::Response);
6 9     9   36  
  9         18  
  9         28  
7             =head1 NAME
8              
9             PLS::Server::Response::Cancelled
10              
11             =head1 DESCRIPTION
12              
13             This is a message from the server to the client indicating that
14             a request has been cancelled.
15              
16             =cut
17              
18             {
19             my ($class, %args) = @_;
20              
21 1     1 0 6 return
22             bless {
23             id => $args{id},
24             error => {code => -32800, message => 'Request cancelled.'}
25             }, $class;
26 1         30 } ## end sub new
27              
28             1;