Documentation
¶
Overview ¶
Package testutil provides helpers for setting up test infrastructure.
Index ¶
Constants ¶
View Source
const TestJWTSecret = "test-jwt-secret"
TestJWTSecret is the shared secret used to sign JWTs in tests.
Variables ¶
This section is empty.
Functions ¶
func NewTestDB ¶
NewTestDB returns a fully migrated in-memory SQLite database. The connection is closed automatically when the test ends.
Uses a named shared-cache in-memory database so that multiple connections within the same test all share the same schema and data, avoiding the per-connection isolation of plain ":memory:" SQLite databases.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.