Client/Serializer/JSON/Cpanel.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Client/Serializer/JSON.pm ↑ Summary Client/Serializer/JSON/PP.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::Serializer::JSON::Cpanel;
24 3 $OpenSearch::Client::Serializer::JSON::Cpanel::VERSION = '3.007011';
25 3 ▶use Cpanel::JSON::XS;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 has 'JSON' =>
29 3 ▶ ( is => 'ro', default => sub { Cpanel::JSON::XS->new->utf8(1) } );
Subroutine __ANON__: called CC=1 SCAR=0.0
30  
31 3 with 'OpenSearch::Client::Role::Serializer::JSON';
32  
33 3 1;
34  
35 __END__
« Client/Serializer/JSON.pm ↑ Summary Client/Serializer/JSON/PP.pm »