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   53 use warnings;
  9         10  
  9         207  
4 9     9   45  
  9         74  
  9         187  
5             use parent 'PLS::Server::Request';
6 9     9   36  
  9         17  
  9         36  
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 534 my $token = delete $args{token};
22              
23 13         47 my $self = {
24             method => '$/progress',
25 13         169 params => {token => $token, value => \%args},
26             notification => 1
27             };
28              
29             return bless $self, $class;
30             } ## end sub new
31 13         131  
32             1;