-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #138668 - Test utility for BytesReference equality
#22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_138668_20251204_2098
Are you sure you want to change the base?
[CORRUPTED] Synthetic Benchmark PR #138668 - Test utility for BytesReference equality
#22
Conversation
Today if you assert two `BytesReference` objects are equal, and they aren't, then the test output is unhelpful because `BytesReference` instances do not include their contents in their default string representations. This commit introduces a new matcher specifically for testing `BytesReference` instances for equality which generates more useful output.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Benchmark PR elastic#138668
Type: Corrupted (contains bugs)
Original PR Title: Test utility for
BytesReferenceequalityOriginal PR Description: Today if you assert two
BytesReferenceobjects are equal, and theyaren't, then the test output is unhelpful because
BytesReferenceinstances do not include their contents in their default string
representations. This commit introduces a new matcher specifically for
testing
BytesReferenceinstances for equality which generates moreuseful output.
Original PR URL: elastic#138668
PR Type
Tests, Enhancement
Description
Introduces
equalBytes()matcher for improvedBytesReferenceequality testingProvides detailed hex output on assertion failures for better debugging
Replaces
equalTo()withequalBytes()across 60+ test filesAdds comprehensive test coverage for the new matcher utility
Diagram Walkthrough
File Walkthrough
1 files
New matcher utility for BytesReference equality testing60 files
Comprehensive tests for equalBytes matcher functionalityReplace equalTo with equalBytes for BytesReference assertionsUpdate BytesReference assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytes matcherUpdate PIT ID assertions to use equalBytes matcherReplace equalTo with equalBytes for content assertionsUpdate BytesReference equality tests to use equalBytesReplace equalTo with equalBytes for response contentUpdate blob content assertions to use equalBytes matcherReplace equalTo with equalBytes for source assertionsUpdate register read assertions to use equalBytesReplace equalTo with equalBytes for stream assertionsUpdate blob content assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate stream output assertions to use equalBytes matcherReplace equalTo with equalBytes for PIT assertionsUpdate chunked response assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate resource bytes assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate source bytes assertions to use equalBytes matcherReplace equalTo with equalBytes for source assertionsUpdate remote query assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate register content assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate response content assertions to use equalBytesReplace Matchers.equalTo with equalBytes for responseUpdate content assertions to use equalBytes matcherReplace equalTo with equalBytes for binary field assertionsUpdate translog source assertions to use equalBytesUpdate role descriptors assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate cache key assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate field mapping source assertions to use equalBytesReplace equalTo with equalBytes for model definitionUpdate doc assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate serialization assertions to use equalBytes matcherReplace equalTo with equalBytes for serializationUpdate PIT ID assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate stream bytes assertions to use equalBytesUpdate PIT ID assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate source assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate response content assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate transport round trip assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate transport round trip assertions to use equalBytesUpdate role descriptors assertions to use equalBytesReplace assertEquals with assertThat using equalBytesUpdate source assertions to use equalBytes matcherReplace assertEquals with assertThat using equalBytesUpdate register value assertions to use equalBytesUpdate source assertions to use equalBytes matcherReplace equalTo with equalBytes for source assertions3 files