PLS/Server/Request/Client/RegisterCapability.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 72.2% 13 / 18 CC 1 SCAR 2.2
CC
1
Cov
77%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PLS/Server/Message.pm ↑ Summary PLS/Server/Response/InitializeResult.pm »
1 package PLS::Server::Request::Client::RegisterCapability;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 PLS::Server::Request::Client::RegisterCapability
11  
12 =head1 DESCRIPTION
13  
14 This is a message from the server to the client requesting that
15 a new capability be registered.
16  
17 This request must be sent for capabilities that cannot be registered for statically.
18  
19 =cut
20  
21 sub new
22 {
23 0 ▶ my ($class, $registrations) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
24  
25 0 my %self = (
26 method => 'client/registerCapability',
27 params => {
28 registrations => $registrations
29 }
30 );
31  
32 0 return bless \%self, $class;
33 } ## end sub new
34  
35 1 1;
« PLS/Server/Message.pm ↑ Summary PLS/Server/Response/InitializeResult.pm »