runner

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestWorkspaceName        = "default"
	TestWorkspaceDisplayName = "Default Workspace"
)

Variables

This section is empty.

Functions

func NewTestContext

func NewTestContext(
	ctx stdCtx.Context,
	t ginkgo.FullGinkgoTInterface,
) *context.Context

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

func (*CommandRunner) Run

func (r *CommandRunner) Run(ctx *context.Context, args ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL