File Coverage

blib/lib/PLS/Server/Request/Progress.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 17 18 94.4


line stmt bran cond sub pod time code
1             package PLS::Server::Request::Progress;
2              
3 11     11   87 use strict;
  11         23  
  11         476  
4 11     11   72 use warnings;
  11         14  
  11         749  
5              
6 11     11   81 use parent 'PLS::Server::Request';
  11         31  
  11         79  
7              
8             =head1 NAME
9              
10             PLS::Server::Request::Progress
11              
12             =head1 DESCRIPTION
13              
14             This is a generic notification, sent from server to client,
15             used to report any kind of progress.
16              
17             =cut
18              
19             sub new
20             {
21 13     13 0 973 my ($class, %args) = @_;
22              
23 13         94 my $token = delete $args{token};
24              
25 13         362 my $self = {
26             method => '$/progress', ## no critic (RequireInterpolationOfMetachars)
27             params => {token => $token, value => \%args},
28             notification => 1
29             };
30              
31 13         268 return bless $self, $class;
32             } ## end sub new
33              
34             1;