Documentation
¶
Overview ¶
Package testutil provides generic, domain-agnostic test helpers for services built on go-foundation: in-memory SQLite databases, ready-made test configurations, and (behind the "integration" build tag) a PostgreSQL testcontainers harness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestConfig ¶
func NewTestConfig(opts ...ConfigOption) *config.Config
NewTestConfig creates a generic test configuration backed by SQLite. Consuming services can override fields via functional options.
Types ¶
type ConfigOption ¶
ConfigOption is a functional option for configuring test config.
func WithEnvironment ¶
func WithEnvironment(env string) ConfigOption
WithEnvironment sets the environment in test config.
func WithVersion ¶
func WithVersion(version string) ConfigOption
WithVersion sets the version in test config.
Click to show internal directories.
Click to hide internal directories.