Documentation
¶
Overview ¶
Package testutil provides common test utilities and helpers to reduce boilerplate in test files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockConfig ¶
func NewMockConfig(t testing.TB, opts ...ConfigOption) config.Provider
NewMockConfig creates a config provider for testing with optional customizations.
Types ¶
type ConfigOption ¶
ConfigOption allows customization of test config settings.
func WithRepositoryDir ¶
func WithRepositoryDir(dir string) ConfigOption
WithRepositoryDir sets a custom repository directory.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fakerunner provides a fake implementation of execx.Runner for testing.
|
Package fakerunner provides a fake implementation of execx.Runner for testing. |
Click to show internal directories.
Click to hide internal directories.