File Coverage

blib/lib/PLS/Server/Request/Client/RegisterCapability.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 16 17 94.1


line stmt bran cond sub pod time code
1              
2             use strict;
3 9     9   53 use warnings;
  9         25  
  9         245  
4 9     9   46  
  9         31  
  9         194  
5             use parent 'PLS::Server::Request';
6 9     9   45  
  9         18  
  9         36  
7             =head1 NAME
8              
9             PLS::Server::Request::Client::RegisterCapability
10              
11             =head1 DESCRIPTION
12              
13             This is a message from the server to the client requesting that
14             a new capability be registered.
15              
16             This request must be sent for capabilities that cannot be registered for statically.
17              
18             =cut
19              
20             {
21             my ($class, $registrations) = @_;
22              
23 5     5 0 17 my %self = (
24             method => 'client/registerCapability',
25 5         59 params => {
26             registrations => $registrations
27             }
28             );
29              
30             return bless \%self, $class;
31             } ## end sub new
32 5         932  
33             1;