Elasticsearch/Serializer/JSON/DontTouchMyUTF8.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 89.4% 17 / 19 CC 1 SCAR 0.3
CC
1
Cov
93%
__ANON__
1.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Elasticsearch.pm ↑ Summary
1 package BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8;
2 1 our $AUTHORITY = 'cpan:SCHWIGON';
3 # ABSTRACT: Pass through known-utf8 data untouched to Elasticsearch.
4 1 $BenchmarkAnything::Storage::Search::Elasticsearch::Serializer::JSON::DontTouchMyUTF8::VERSION = '0.005';
5 # As seen in
6 # https://github.com/elastic/elasticsearch-perl/issues/57
7 # (Kudos to Celogeek - you are not alone!)
8  
9  
10 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use JSON::MaybeXS 1.002002 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶has 'JSON' => ( is => 'ro', default => sub { JSON::MaybeXS->new } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
14  
15 1 with 'Search::Elasticsearch::Role::Serializer::JSON';
16 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 1;
19  
20 __END__
« Elasticsearch.pm ↑ Summary