File Coverage

blib/lib/OpenSearch/Security/ReloadHTTPCerts.pm
Criterion Covered Total %
statement 18 22 81.8
branch n/a
condition n/a
subroutine 6 7 85.7
pod 0 1 0.0
total 24 30 80.0


line stmt bran cond sub pod time code
1             package OpenSearch::Security::ReloadHTTPCerts;
2 4     4   28 use strict;
  4         9  
  4         170  
3 4     4   21 use warnings;
  4         9  
  4         278  
4 4     4   27 use Moo;
  4         10  
  4         29  
5 4     4   1796 use Types::Standard qw(InstanceOf);
  4         51  
  4         40  
6 4     4   7376 use feature qw(signatures);
  4         11  
  4         613  
7 4     4   48 no warnings qw(experimental::signatures);
  4         34  
  4         744  
8              
9             has '_base' => (
10             is => 'rw',
11             isa => InstanceOf ['OpenSearch::Base'],
12             required => 1,
13             );
14              
15 0     0 0   sub execute($self) {
  0            
  0            
16 0           my $res = $self->_base->_put( $self, [ '_plugins', '_security', 'api', 'ssl', 'http', 'reloadcerts' ] );
17             }
18              
19             1;