Skip to content

Add unit tests for scoring and ignore parsing#9

Open
rogeralsing wants to merge 1 commit intomainfrom
tests/scoring-ignore-parsing
Open

Add unit tests for scoring and ignore parsing#9
rogeralsing wants to merge 1 commit intomainfrom
tests/scoring-ignore-parsing

Conversation

@rogeralsing
Copy link
Contributor

Adds table-driven unit tests for strategy scoring and ignore hash parsing/creation.

Also makes ignore parsing robust to common copy-paste formats from CLI output (e.g. "[deadbeef...]" and "0xdeadbeef...").

Closes #2.

@rogeralsing
Copy link
Contributor Author

Progress notes:

  • Added unit tests covering strategy scoring behavior (similarity scaling + indent-imbalance penalty + inlineable shape matching).
  • Added ignore parsing tests, plus a small fix so ignore entries accept common copy/paste formats from CLI output (brackets) and optional 0x prefix.
  • Verified with go test ./....

@rogeralsing rogeralsing mentioned this pull request Jan 22, 2026
8 tasks
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.

TODO

1 participant