File Coverage

blib/lib/Perl/LanguageServer/Req.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Perl::LanguageServer::Req ;
2              
3 1     1   7 use strict;
  1         3  
  1         29  
4 1     1   5 use Moose ;
  1         2  
  1         7  
5              
6 1     1   7861 no warnings 'uninitialized' ;
  1         2  
  1         180  
7              
8             # ---------------------------------------------------------------------------
9              
10             has 'id' =>
11             (
12             isa => 'Maybe[Str]',
13             is => 'ro'
14             ) ;
15              
16             has 'params' =>
17             (
18             isa => 'HashRef',
19             is => 'ro'
20             ) ;
21              
22             has 'cancel' =>
23             (
24             isa => 'Bool',
25             is => 'rw',
26             default => 0,
27             ) ;
28              
29             has 'is_dap' =>
30             (
31             isa => 'Bool',
32             is => 'rw',
33             default => 0,
34             ) ;
35              
36             has 'type' =>
37             (
38             isa => 'Str',
39             is => 'rw',
40             ) ;
41              
42             # ---------------------------------------------------------------------------
43              
44             sub cancel_req
45             {
46 0     0 0   my ($self) = @_ ;
47              
48 0           $self -> cancel (1) ;
49              
50             }
51              
52              
53             # ---------------------------------------------------------------------------
54              
55             1 ;
56