File Coverage

blib/lib/OpenSearch/Cluster/Stats.pm
Criterion Covered Total %
statement 18 22 81.8
branch 0 2 0.0
condition n/a
subroutine 6 7 85.7
pod 0 1 0.0
total 24 32 75.0


line stmt bran cond sub pod time code
1             package OpenSearch::Cluster::Stats;
2 4     4   34 use strict;
  4         12  
  4         212  
3 4     4   37 use warnings;
  4         27  
  4         331  
4 4     4   32 use Moo;
  4         9  
  4         35  
5 4     4   2167 use Types::Standard qw(InstanceOf);
  4         35  
  4         51  
6 4     4   8856 use feature qw(signatures);
  4         10  
  4         802  
7 4     4   35 no warnings qw(experimental::signatures);
  4         25  
  4         888  
8              
9             with 'OpenSearch::Parameters::Cluster::Stats';
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 0         my $res = $self->_base->_get( $self, [ '_cluster', 'stats', ( $self->nodes ? ( 'nodes', $self->nodes ) : () ) ] );
19             }
20              
21              
22             1;