File Coverage

blib/lib/OpenSearch/Security/Whoami.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::Whoami;
2 4     4   30 use strict;
  4         11  
  4         195  
3 4     4   24 use warnings;
  4         9  
  4         238  
4 4     4   22 use Moo;
  4         11  
  4         32  
5 4     4   1660 use Types::Standard qw(InstanceOf);
  4         10  
  4         35  
6 4     4   6983 use feature qw(signatures);
  4         11  
  4         730  
7 4     4   34 no warnings qw(experimental::signatures);
  4         24  
  4         815  
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->_get( $self, [ '_plugins', '_security', 'whoami' ] );
17             }
18              
19             1;