Documentation
¶
Index ¶
Constants ¶
View Source
const ( TestWorkspaceName = "default" TestWorkspaceDisplayName = "Default Workspace" )
Variables ¶
This section is empty.
Functions ¶
func NewTestContext ¶
NewTestContext creates a new context for testing runners. It initializes the context with a real logger that writes it's output to a temporary file. It also creates a temporary testing directory for the test workspace, user configs, and caches. Test environment variables are set the config and cache directories override paths.
func NewTestContextWithMockLogger ¶
func NewTestContextWithMockLogger( ctx stdCtx.Context, t ginkgo.FullGinkgoTInterface, ctrl *gomock.Controller, ) (*context.Context, *tuikitIOMocks.MockLogger)
NewTestContextWithMockLogger creates a new context for testing runners. It initializes the context with a mock logger. It also creates a temporary testing directory for the test workspace, user configs, and caches. Test environment variables are set the config and cache directories override paths.
Types ¶
type CommandRunner ¶
type CommandRunner struct {
// contains filtered or unexported fields
}
func NewE2ECommandRunner ¶
func NewE2ECommandRunner(ctx *context.Context) *CommandRunner
Click to show internal directories.
Click to hide internal directories.