blib/lib/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
« t/Communicate.pm ↑ Summary blib/lib/PLS/Parser/PackageSymbols.pm »
1 package PLS::Server::Method::CompletionItem;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 ▶use PLS::Server::Request::CompletionItem::Resolve;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 PLS::Server::Method::CompletionItem
11  
12 =head1 DESCRIPTION
13  
14 This module redirects requests beginning with C<completionItem/> to the
15 appropriate subclass of L<PLS::Server::Request>.
16  
17 Requests currently implemented:
18  
19 =over
20  
21 =item completionItem/resolve - L<https://microsoft.github.io/language-server-protocol/specifications/specification-current/#completionItem_resolve>
22  
23 L<PLS::Server::Request::CompletionItem::Resolve>
24  
25 =back
26  
27 =cut
28  
29 sub get_request
30 0 ▶{
Subroutine get_request: not called CC=2 SCAR=17.9
Pod undocumented
31 0 my ($request) = @_;
32  
33 0 my (undef, $method) = split m{/}, $request->{method};
34  
35 0 ▶ if ($method eq 'resolve')
Branch: 1 branch
BranchTrueFalseTotal
if ($method eq "resolve") 0 0 0
36 {
37 0 return PLS::Server::Request::CompletionItem::Resolve->new($request);
38 }
39  
40 0 return;
41 } ## end sub get_request
42  
43 13 1;
« t/Communicate.pm ↑ Summary blib/lib/PLS/Parser/PackageSymbols.pm »