Skip to content

Clean up cert tests - #278

Merged
meling merged 2 commits into
mainfrom
meling/180/make-auth-tests-idiomatic
Nov 16, 2025
Merged

meling merged 2 commits into
mainfrom
meling/180/make-auth-tests-idiomatic

Conversation

@meling

@meling meling commented Nov 16, 2025

Copy link
Copy Markdown
Member

Fixes #180

  • refactor: rename cert_test.go to auth_test.go to match auth.go
  • refactor: auth tests to use common subtest naming; general cleanup

In the refactoring process we forgot to rename the test when we
renamed the cert.go to auth.go. (Maybe it was the other way around,
but either name is fine, but now they are at least the name.)
This adds a Name() method to the testcase and testCase types so that
tests and benchmarks can simply call td.Name() to get the subtest name.
@meling
meling merged commit 510e6d3 into main Nov 16, 2025
4 checks passed
@meling
meling deleted the meling/180/make-auth-tests-idiomatic branch November 16, 2025 10:29
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.

chore: write idiomatic tests

1 participant