File Coverage

blib/lib/OpenSearch/Document/Bulk.pm
Criterion Covered Total %
statement 18 22 81.8
branch n/a
condition 0 3 0.0
subroutine 6 7 85.7
pod 0 1 0.0
total 24 33 72.7


line stmt bran cond sub pod time code
1             package OpenSearch::Document::Bulk;
2 4     4   33 use strict;
  4         12  
  4         219  
3 4     4   27 use warnings;
  4         10  
  4         329  
4 4     4   28 use Moo;
  4         28  
  4         36  
5 4     4   2185 use Types::Standard qw(InstanceOf);
  4         10  
  4         91  
6 4     4   13513 use feature qw(signatures);
  4         10  
  4         726  
7 4     4   33 no warnings qw(experimental::signatures);
  4         40  
  4         776  
8              
9             with 'OpenSearch::Parameters::Document::Bulk';
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->_post( $self, [ ( $self->index // () ), '_bulk' ] );
19             }
20              
21              
22             1;