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              
2             use strict;
3 9     9   46 use warnings;
  9         18  
  9         225  
4 9     9   36  
  9         10  
  9         181  
5             use parent 'PLS::Server::Request';
6 9     9   28  
  9         17  
  9         28  
7             =head1 NAME
8              
9             PLS::Server::Request::Progress
10              
11             =head1 DESCRIPTION
12              
13             This is a generic notification, sent from server to client,
14             used to report any kind of progress.
15              
16             =cut
17              
18             {
19             my ($class, %args) = @_;
20              
21 13     13 0 635 my $token = delete $args{token};
22              
23 13         50 my $self = {
24             method => '$/progress',
25 13         228 params => {token => $token, value => \%args},
26             notification => 1
27             };
28              
29             return bless $self, $class;
30             } ## end sub new
31 13         187  
32             1;