Skip to content

test: guard API registry against route drift - #829

Merged
ajianaz merged 1 commit into
codecoradev:developfrom
tomatotomata:codex/guard-api-route-registry-828
Aug 3, 2026
Merged

ajianaz merged 1 commit into
codecoradev:developfrom
tomatotomata:codex/guard-api-route-registry-828

Conversation

@tomatotomata

Copy link
Copy Markdown
Contributor

Closes #828.\n\nThe existing registry test only spot-checked a few paths. This replaces it with a source-backed guard that extracts (Method, path) route arms from uteke-server/src/handlers.rs and asserts every handler path is represented in ENDPOINTS. It keeps the existing core endpoint checks as a smoke test.\n\nValidation:\n- cargo fmt --all -- --check\n- Focused source-level route comparison: 46 handler paths, 57 registered paths, 0 missing\n- git diff --check\n\ncargo test -p uteke-server registry_covers_handler_routes was attempted twice, but this environment exceeded 5 minutes compiling the workspace dependencies. No test result is being claimed from that command.

@ajianaz ajianaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Parsing handlers.rs routes at compile time and diffing against the ENDPOINTS registry is a solid drift guard. The BTreeSet comparison approach is clean.

@ajianaz
ajianaz merged commit 0fdc11c into codecoradev:develop Aug 3, 2026
ajianaz added a commit that referenced this pull request Aug 5, 2026
- v0.12.0: add @KazamiHazaki (Windows installer #779) + @dependabot
- v0.11.0: add @themiguelamador (#830 #831) + @tomatotomata (#829)
- v0.12.0: add install.ps1 to Added section

Co-authored-by: ajianaz <[email protected]>
ajianaz added a commit that referenced this pull request Aug 13, 2026
- v0.12.0: add @KazamiHazaki (Windows installer #779) + @dependabot
- v0.11.0: add @themiguelamador (#830 #831) + @tomatotomata (#829)
- v0.12.0: add install.ps1 to Added section

Co-authored-by: ajianaz <[email protected]>
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.

docs(api): derive api-reference from route handlers (single source of truth) to prevent silent omissions

2 participants