Closed
Increase CopiWeb.SessionStore coverage with focused branch tests#3247
CopiWeb.SessionStore coverage with focused branch tests#3247Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…copilot/increase-test-coverage-session-store
Copilot
AI
changed the title
[WIP] Improve CI job by increasing test coverage for session store
Increase Jul 17, 2026
CopiWeb.SessionStore coverage with focused branch tests
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.
The failing Copi CI job was a coverage-gate failure, not a functional regression: total coverage was 93.6% vs. the 95% minimum, with
copi_web/session_store.excalled out at 93.1%. This change adds direct tests for the session-store branches that were previously undercovered without modifying production code or runtime behavior.What changed
CopiWeb.SessionStoreTestfor direct branch coverage of the custom session store.copi.owasp.org/test/copi_web/.Cookie-backed session paths
get/3,put/4, anddelete/3when PostgreSQL session storage is disabled.PostgreSQL-backed session paths
put/4storing encrypted session data and returning a cookie containing the PostgreSQL session id.get/3restoring a valid persisted session.put/4updating an existing session id and pruning expired rows.delete/3removing the backingSessionRecord.Failure and fallback branches
decrypt_database_session/1.Representative example