Elasticsearch/Serializer/JSON.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Elasticsearch/Role/Serializer.pm ↑ Summary Elasticsearch/Serializer/JSON/Cpanel.pm »
1 # Licensed to Elasticsearch B.V under one or more agreements.
2 # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3 # See the LICENSE file in the project root for more information
4  
5 package Search::Elasticsearch::Serializer::JSON;
6 46 $Search::Elasticsearch::Serializer::JSON::VERSION = '7.30_1'; # TRIAL
7  
8 46 $Search::Elasticsearch::Serializer::JSON::VERSION = '7.301';
9 46 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 46 ▶use JSON::MaybeXS 1.002002 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 91 ▶has 'JSON' => ( is => 'ro', default => sub { JSON::MaybeXS->new->utf8(1) } );
Subroutine __ANON__: called CC=1 SCAR=0.0
13  
14 46 with 'Search::Elasticsearch::Role::Serializer::JSON';
15 46 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 46 1;
18  
19 # ABSTRACT: The default JSON Serializer, using JSON::MaybeXS
20  
21 __END__
« Elasticsearch/Role/Serializer.pm ↑ Summary Elasticsearch/Serializer/JSON/Cpanel.pm »