mirror of
https://github.com/elastic/logstash.git
synced 2025-04-21 21:27:20 -04:00
Since the underlying JrJackson now properly (and efficiently) encodes the
UTF-8 transcode of whichever strings it is given, we no longer need to
pre-normalize to UTF-8 in ruby _except_ when the string is flagged as BINARY
because we have alternate behaviour to preserve valid UTF-8 sequences.
By emitting a _copy_ of binary-flagged strings that have been re-flagged as
UTF-8, we allow the downstream (efficient) encoding operation in jrjackson
to produce equivalent behaviour at much lower cost.
(cherry picked from commit
|
||
---|---|---|
.. | ||
bootstrap | ||
compliance | ||
fixtures | ||
support | ||
unit | ||
README.md | ||
spec_helper.rb |
How to run these tests
Run one:
rspec spec/the/test.rb
Run them all:
rspec spec/**/*.rb
Debug one test:
LOGSTASH_DEBUG=y rspec spec/the/test.rb