Documentation
¶
Index ¶
- Constants
- func CaptureOutput(fn func()) (stdout string, stderr string)
- func CreateTempAVSProject(t *testing.T) (string, error)
- func CreateTestAppWithNoopLoggerAndAccess(name string, flags []cli.Flag, action cli.ActionFunc) (*cli.App, *logger.NoopLogger)
- func FindSubcommandByName(name string, commands []*cli.Command) *cli.Command
- func TestGitCall(repoDir string, cmds [][]string) error
- func TestGitDiscardChanges(repoDir string) error
- func TestGitInit(repoDir string) error
- func WithTestConfig(cmd *cli.Command) *cli.Command
- func WithTestConfigAndNoopLogger(cmd *cli.Command) *cli.Command
- func WithTestConfigAndNoopLoggerAndAccess(cmd *cli.Command) (*cli.Command, *logger.NoopLogger)
Constants ¶
View Source
const ConfigContextKey ctxKey = "ConfigWithContextConfig"
ConfigContextKey identifies the ConfigWithContextConfig in context
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
func CreateTempAVSProject ¶
helper to create a temp AVS project dir with config.yaml copied
func CreateTestAppWithNoopLoggerAndAccess ¶ added in v0.0.9
func CreateTestAppWithNoopLoggerAndAccess(name string, flags []cli.Flag, action cli.ActionFunc) (*cli.App, *logger.NoopLogger)
CreateTestAppWithNoopLoggerAndAccess creates a CLI app with no-op logger and returns both app and logger
func FindSubcommandByName ¶
func TestGitCall ¶
func TestGitDiscardChanges ¶
func TestGitInit ¶
func WithTestConfigAndNoopLogger ¶ added in v0.0.9
WithTestConfigAndNoopLogger sets up a test configuration and no-op logger for silent testing
func WithTestConfigAndNoopLoggerAndAccess ¶ added in v0.0.9
WithTestConfigAndNoopLoggerAndAccess sets up test config and no-op logger, returning both command and logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.