logstash/spec
github-actions[bot] dced3202f1
Json normalization performance (#16313) (#16314)
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 66aeeeef83)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2024-08-08 09:56:30 +01:00
..
bootstrap Add apache and elastic license headers to source code files (#11673) 2020-03-11 11:53:38 +00:00
compliance Json normalization performance (#16313) (#16314) 2024-08-08 09:56:30 +01:00
fixtures Enable SpaceAfterColon, SpaceAfterComma, SpaceAfterSemicolon (#15180) 2023-07-14 16:46:35 -04:00
support Rubocop: Enable SpaceAround cops (#15196) 2023-07-18 21:11:57 -04:00
unit deps: downgrade jruby, keep updated default-gem dependencies (forward-port #15283) (#15369) 2023-10-03 14:32:28 -07:00
README.md Using already existing LOGSTASH_DEBUG env variable to debug + update README 2012-09-14 12:28:29 +02:00
spec_helper.rb [CI] Send Java and ruby tests to sonarqube simultaneously (#15810) 2024-01-17 19:04:37 +00:00

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