File Coverage

blib/lib/OpenSearch/Security/ChangePassword.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::ChangePassword;
2 4     4   61 use strict;
  4         9  
  4         179  
3 4     4   22 use warnings;
  4         9  
  4         278  
4 4     4   30 use Moo;
  4         28  
  4         33  
5 4     4   1955 use Types::Standard qw(InstanceOf);
  4         12  
  4         47  
6 4     4   7374 use feature qw(signatures);
  4         11  
  4         668  
7 4     4   32 no warnings qw(experimental::signatures);
  4         8  
  4         830  
8              
9             with 'OpenSearch::Parameters::Security::ChangePassword';
10              
11             has '_base' => (
12             is => 'rw',
13             isa => InstanceOf ['OpenSearch::Base'],
14             required => 1,
15             );
16              
17 0     0 0   sub execute($self) {
  0            
  0            
18 0           my $res = $self->_base->_put( $self, [ '_plugins', '_security', 'api', 'account' ] );
19             }
20              
21             1;