Skip to content

Commit

Permalink
Improve tests with inherently named tests
Browse files Browse the repository at this point in the history
Refactor nearly all tests by using `map[string]TestCase` for the list of
test cases. This finishes some ongoing refactoring from recent commits.

This change has several benefits, including compiler enforced unique
test names, required names (can't forget to add it to the struct),
simpler `TestCase` types. Additionally, this change makes it more likely
to end up with more descriptive test names, which is already observed in
a few cases here.

Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
  • Loading branch information
ericcornelissen committed Dec 15, 2024
1 parent 7043fb0 commit fd6a9cf
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 311 deletions.
Loading

0 comments on commit fd6a9cf

Please sign in to comment.