-
Notifications
You must be signed in to change notification settings - Fork 134
Adv/add jaccoco #1230
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
Draft
peter-lawrey
wants to merge
57
commits into
develop
Choose a base branch
from
adv/add-jaccoco
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Adv/add jaccoco #1230
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ise JaCoCo ratios
…lueIn negative paths to raise coverage
…shalling, and method dispatch tests
…to avoid ASM error
….requiredArgs + -Djvm.coverage=true)
…481,S116) - MarshallableOutBuilderTest: add @ignore reason (S1607) [ISSUES.md #1] - ReadOneTest: remove unused import MethodId (S1128) [#2] - MethodWriterClassNameGenerator: drop unused Jvm import (S1128) [#7] - MethodWriterClassNameGeneratorTest: remove unused assumeFalse import (S1128) [#10] - SerializableObjectTest: remove redundant public on method (S5786) [#8] - BinaryWirePerfTest: remove unused throws/vars (S1130,S1854,S1481) [#1621,#1622,#1623,#1624,#1625] - TextWireTest: suppress naming rule for A/B/C/D fields in test fixtures (S116) [#9] Build: mvn -q clean verify -P sonar (JDK 11) passes; JaCoCo unchanged (~72.36% lines).
…warning; no behavioural change intended (addresses Sonar S131/S1301)
…; no behaviour change
…1); no behaviour change
…1128) in performance/resources tests
…haviour unchanged
- Guard BinaryWire unknownCode at stream end - Skip/relax network- and format-sensitive assertions - Close resources; adjust RawWire/QueryWire coverage
- YamlWire: factor duplicate literal into constant - YamlTokeniser: remove unused import - BinaryWire: add @deprecated Javadoc tag for legacy ctor - WireType: document and suppress reflective accessibility (S3011); guard setAccessible - GenerateMethodReader: use %n in format strings; fix local name shadowing - JsonWireToStringAcceptanceTest: package-private class; rename WIRE_TYPES to wireTypes - JsonWireDoubleAndFloatSpecialValuesAcceptanceTests: package-private class - TestJsonIssue467: dedupe test2 via delegation; use assertEquals for equality checks - YamlWireTest: rename shadowing locals (S1117)
…gs; misc Sonar cleanups
- MethodWriterClassNameGeneratorTest: package-private class (S5786) and use System.lineSeparator() instead of \n (S3457) - GenerateMethodReader: further %n conversions in prior commit - General: previous passes handled YamlWire literal, deprecated Javadoc, S3011 suppression and test tidy-ups
…g codegen/test format strings
- DefaultValueInCoverageTest: assert empty Bytes content instead of identity for NO_BYTES view to avoid reliance on implementation details. - ValueInBestEffortTest: strict mode now yields textual mapping; assert representation rather than expecting ClassCastException. - WireObjectStreamAdapterTest: relax available() to >= 4 since it reports underlying wire bytes (may include framing). Impact: JDK11 sonar verify passes consistently; avoids brittle assertions.
- Line: 0.724, Branch: 0.661 based on JDK 11 sonar run. - Keeps values in the sonar profile properties (BUNDLE scope). Rationale: lock in recent coverage gains to prevent regressions.
- Ran mvn license:format to normalise headers to project template. - Keeps exclusions for generated/transient files as configured.
|
…tabilise tests - YamlWire.TextValueIn: support ANCHOR/ALIAS during marshallable() to avoid UOE. - WireObjectInput.read(byte[],..): use elastic sink and fix -Werror; update test to avoid mid-field skip. - YamlAnchorCoverageTest: assert non-null alias object, and compare if map. - WireObjectStreamAdapterTest: remove brittle skip; verify 4-byte read payload. Rationale: make tests robust across encodings and avoid relying on mid-field skipping semantics.
Ensures JPMS export/open flags are applied for all test runs (not only sonar profile), stabilising runtime compilation (OpenHFT compiler) on JDK 11/17/21/25 and preventing proxy fallback in method-writer tests.
- Default tests: keep JPMS flags in Surefire argLine. - Sonar profile: use and set JaCoCo prepare-agent propertyName. - Add sonar.coverage.jacoco.xmlReportPaths for explicit report pickup. - Move coverage thresholds to top-level properties to avoid duplication.
- Remove ISSUES.md (keep outside repo; add to .gitignore). - Delete duplicate YamlValueOutAdditionalTest (covered by formatting branches test). - Merge QueryWireCoverageTest into QueryWireTest. - Merge BinaryWireToTextWireTest into BinaryWireReadWithLengthTest. Build: mvn -q clean verify -P sonar passes locally.
# Conflicts: # docs/LICENSE.adoc
# Conflicts: # pom.xml # src/main/java/net/openhft/chronicle/wire/BinaryWire.java # src/test/java/net/openhft/chronicle/wire/BinaryWirePerfTest.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



No description provided.