blib/lib/PLS/Server/Request/Window/WorkDoneProgress/Create.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/PLS/Server/Message.pm ↑ Summary blib/lib/PLS/Server/Request/TextDocument/Formatting.pm »
1 package PLS::Server::Request::Window::WorkDoneProgress::Create;
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 parent 'PLS::Server::Request';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 PLS::Server::Request::Window::WorkDoneProgress::Create
11  
12 =head1 DESCRIPTION
13  
14 This is a request from the server to the client to ask the client
15 to create a work done progress.
16  
17 =cut
18  
19 sub new
20 5 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
21 5 my ($class) = @_;
22  
23 5 my @hex_chars = ('0' .. '9', 'A' .. 'F');
24 5 my $token = join '', map { $hex_chars[rand @hex_chars] } 1 .. 8;
25  
26 5 return bless {method => 'window/workDoneProgress/create', params => {token => $token}}, $class;
27 } ## end sub new
28  
29 13 1;
« blib/lib/PLS/Server/Message.pm ↑ Summary blib/lib/PLS/Server/Request/TextDocument/Formatting.pm »