Skip to content

test(xdg): fix TestSanitizeRepoID to verify expected values#337

Open
proboscis wants to merge 1 commit intomainfrom
issue/dummy-test-001/run-20260123-021212
Open

test(xdg): fix TestSanitizeRepoID to verify expected values#337
proboscis wants to merge 1 commit intomainfrom
issue/dummy-test-001/run-20260123-021212

Conversation

@proboscis
Copy link
Owner

Summary

  • Fixed TestSanitizeRepoID test to actually verify expected output values (the want field was defined but never checked)
  • Corrected incorrect expected value for "repo.git" case: changed from "repogit-" to "owner-repogit"

Related Issue

dummy-test-001

Test plan

  • All existing tests pass (go test ./...)
  • The fixed test now properly verifies expected values

🤖 Generated with Claude Code

The test was defining expected values in the test struct but never
actually verifying them against the function output. This change:
- Adds actual verification of expected output values
- Fixes incorrect expected value for "repo.git" case (was "repogit-",
  should be "owner-repogit")

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant