Skip to content

test: add middle-card navigation test for DeckService#2847

Merged
sydseter merged 2 commits intoOWASP:masterfrom
theanand108:fix/cre-api-coverage
Apr 20, 2026
Merged

test: add middle-card navigation test for DeckService#2847
sydseter merged 2 commits intoOWASP:masterfrom
theanand108:fix/cre-api-coverage

Conversation

@theanand108
Copy link
Copy Markdown
Contributor

Description

Adds a test case to cover navigation logic for a middle card within the same suit.

Changes

  • Added test to verify that middle cards correctly reference previous and next cards within the same suit

Motivation

Existing tests cover navigation for first and last cards, but not the intra-suit navigation case.
This test ensures coverage of that branch.

No production code changes.

AI Disclosure
[x] My contribution includes AI-generated content
AI Tools: ChatGPT
LLMs: GPT-5 class model
Prompts: Used for identifying uncovered branch and structuring test case

Affirmation
[x] My code follows the CONTRIBUTING.md guidelines

@theanand108
Copy link
Copy Markdown
Contributor Author

Hi!

I noticed the COPI test job is still failing due to the global coverage threshold (95%), currently around ~94%.

From what I can see, this doesn’t seem related to this PR, since the changes here are limited to test additions on the website side.

Happy to take a closer look at COPI coverage separately if needed.

@sydseter sydseter merged commit 92b525c into OWASP:master Apr 20, 2026
8 of 9 checks passed
@sydseter
Copy link
Copy Markdown
Collaborator

@theanand108 Thank you for your time!

@theanand108 theanand108 deleted the fix/cre-api-coverage branch April 21, 2026 06:23
@theanand108
Copy link
Copy Markdown
Contributor Author

Thanks! Really appreciate your guidance and support — it means a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants