test: cover highlight repository failures - #127
Open
davidfedor wants to merge 7 commits into
Open
Conversation
Contributor
✅ Commit Lint: passedAll commit messages in this PR conform to Conventional Commits. 📦 Release preview:
|
davidfedor
marked this pull request as ready for review
May 18, 2026 19:13
Member
Author
|
@greptile please re-review |
added 6 commits
July 27, 2026 16:09
Contributor
Code Coverage ReportCoverage after merging codex/move-preview-member-to-extension into main will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
Motivation
saveOperationsthrows.Description
Tests/YouVersionPlatformCoreTests/BibleHighlightsRepositoryTests.swiftto simplify creating commonBibleReference/PendingHighlightOperationfixtures and simulate asaveOperationsfailure.MockBibleHighlightsAPIasfinaland kept it as the mock implementation for API calls used in tests.passageIdvalues soconvertToBibleHighlight()failure paths are hit viahighlights(for:).saveOperationsandprocessQueuecovering remove/update failure results, thrown API errors, and the re-queue/retry behavior when operations fail orsaveOperationsthrows.Testing
swift testand the full test suite completed successfully with all tests passing.LINUX_SOURCEKIT_LIB_PATH=/root/.local/share/swiftly/toolchains/6.1.3/usr/lib /tmp/swiftlint-install/swiftlint --strictand it reported no violations.Codex Task
Greptile Summary
The PR expands highlight repository failure-path coverage while making queue scheduling controllable in tests.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (8): Last reviewed commit: "refactor: consolidate highlight reposito..." | Re-trigger Greptile
Context used: