PLS/Server/Method/CompletionItem.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 59.0% 13 / 22 CC 2 SCAR 11.0
CC
2
Cov
59%
get_request
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« PLS/Server.pm ↑ Summary PLS/Parser/Pod/Builtin.pm »
1 package PLS::Server::Method::CompletionItem;
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 PLS::Server::Request::CompletionItem::Resolve;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 This module redirects requests beginning with C<completionItem/> to the
11 appropriate subclass of L<PLS::Server::Request>.
12  
13 Requests currently implemented:
14  
15 =over
16  
17 =item completionItem/resolve - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#completionItem_resolve>
18  
19 L<PLS::Server::Request::CompletionItem::Resolve>
20  
21 =back
22  
23 =cut
24  
25 sub get_request
26 {
27 0 ▶ my ($request) = @_;
Subroutine get_request: not called CC=2 SCAR=17.9
Pod undocumented
28  
29 0 my (undef, $method) = split '/', $request->{method};
30  
31 0 ▶ if ($method eq 'resolve')
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq "resolve") 0 0 0
32 {
33 0 return PLS::Server::Request::CompletionItem::Resolve->new($request);
34 }
35  
36 0 return;
37 } ## end sub get_request
38  
39 9 1;
« PLS/Server.pm ↑ Summary PLS/Parser/Pod/Builtin.pm »