Documentation
¶
Overview ¶
Package apptesting provides test helpers for constructing a real *app.App over in-memory SQLite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestConfig ¶ added in v0.6.0
func NewTestConfig(t *testing.T, opts ...ConfigOption) *config.Config
NewTestConfig returns a default Config with the given options applied.
Types ¶
type ConfigOption ¶ added in v0.6.0
ConfigOption mutates a Config for test purposes.
func WithJSON ¶ added in v0.6.0
func WithJSON() ConfigOption
WithJSON sets the output format to JSON.
func WithQuiet ¶ added in v0.6.0
func WithQuiet() ConfigOption
WithQuiet sets quiet mode on the test config.
Click to show internal directories.
Click to hide internal directories.