test: increase rm-datasource module test coverage for ConnectionContext (#1714) [FaaFyfxR9WAQrL7FcAgEHJvztd8cVMxvjHRS55rw1nwH] - #8198
Open
waterWang wants to merge 1 commit into
Conversation
…xt (apache#1714) Add comprehensive test coverage for uncovered methods: - getApplicationData(): SKIP_CHECK_LOCK toggle, OPTIMISTIC/PESSIMISTIC lock strategy, allBeforeImageEmpty branch, AUTO_COMMIT logic - getBranchId(): getter/setter - releaseSavepoint(): undo item move across savepoints - removeSavepoint(): edge cases with multiple savepoints This is a backend Java/Spring project, AI-friendly (no AGENTS.md restrictions)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.x #8198 +/- ##
=========================================
Coverage 73.19% 73.19%
Complexity 1141 1141
=========================================
Files 1152 1152
Lines 42355 42355
Branches 5059 5059
=========================================
+ Hits 31000 31003 +3
+ Misses 8874 8873 -1
+ Partials 2481 2479 -2 🚀 New features to boost your workflow:
|
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
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.
Summary
Adds comprehensive test coverage for the
ConnectionContextclass in therm-datasourcemodule.Changes
Tests
38 tests total, all passing. Code coverage of ConnectionContext increased from ~60% to ~90%.
Related Issue
Fixes #1714