Client/Role/Client.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 77.7% 14 / 18 SCAR 0.1
CC
1
Cov
79%
perform_request
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Client/Core/3_0.pm ↑ Summary Client/Cxn/Factory.pm »
1 # OpenSearch::Client is an unofficial client for OpenSearch.
2 # It is derived from Search::Elasticsearch version 7.714
3 # License details from the original work are contained in the
4 # NOTICE file distributed with this work.
5 #
6 #-----------------------------------------------------------------------
7 # OpenSearch::Client
8 #-----------------------------------------------------------------------
9 # Copyright 2026 Mark Dootson
10 #
11 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
14 #
15 # http://www.apache.org/licenses/LICENSE-2.0
16 #
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22  
23 package OpenSearch::Client::Role::Client;
24 56 $OpenSearch::Client::Role::Client::VERSION = '3.007010';
25 56 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 56 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 56 requires 'parse_request';
29  
30 56 has 'transport' => ( is => 'ro', required => 1 );
31 56 has 'logger' => ( is => 'ro', required => 1 );
32  
33 #===================================
34 sub perform_request {
35 #===================================
36 0 ▶ my $self = shift;
Subroutine perform_request: not called CC=1 SCAR=6.9
Pod documented
37 0 my $request = $self->parse_request(@_);
38 0 return $self->transport->perform_request($request);
39 }
40  
41 56 1;
42  
43 __END__
« Client/Core/3_0.pm ↑ Summary Client/Cxn/Factory.pm »