Documentation
¶
Index ¶
- func StepPath(levelsUp int, stepPath string) string
- type StepRunnerBuilder
- func (b *StepRunnerBuilder) RegisterStepFunc(name string, spec *proto.Spec, function runner.StepFunc) *StepRunnerBuilder
- func (b *StepRunnerBuilder) Run(yaml string) (*proto.StepResult, string, error)
- func (b *StepRunnerBuilder) WithDebugLogs() *StepRunnerBuilder
- func (b *StepRunnerBuilder) WithEnvKeyVal(key, value string) *StepRunnerBuilder
- func (b *StepRunnerBuilder) WithGlobalCtxEnv(env map[string]string) *StepRunnerBuilder
- func (b *StepRunnerBuilder) WithJobKeyVal(key, value string) *StepRunnerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StepPath ¶ added in v0.18.0
StepPath returns the absolute path to a test step, resolving from the project root. levelsUp specifies how many directory levels to go up from the caller's location to reach the project root. For example, from pkg/api/service, levelsUp=3; from pkg/api/client/extended, levelsUp=4; from cmd/ci, levelsUp=2.
Types ¶
type StepRunnerBuilder ¶
type StepRunnerBuilder struct {
// contains filtered or unexported fields
}
func StepRunner ¶
func StepRunner(t *testing.T) *StepRunnerBuilder
func (*StepRunnerBuilder) RegisterStepFunc ¶ added in v0.17.0
func (b *StepRunnerBuilder) RegisterStepFunc(name string, spec *proto.Spec, function runner.StepFunc) *StepRunnerBuilder
func (*StepRunnerBuilder) Run ¶
func (b *StepRunnerBuilder) Run(yaml string) (*proto.StepResult, string, error)
func (*StepRunnerBuilder) WithDebugLogs ¶
func (b *StepRunnerBuilder) WithDebugLogs() *StepRunnerBuilder
func (*StepRunnerBuilder) WithEnvKeyVal ¶
func (b *StepRunnerBuilder) WithEnvKeyVal(key, value string) *StepRunnerBuilder
func (*StepRunnerBuilder) WithGlobalCtxEnv ¶
func (b *StepRunnerBuilder) WithGlobalCtxEnv(env map[string]string) *StepRunnerBuilder
func (*StepRunnerBuilder) WithJobKeyVal ¶ added in v0.16.0
func (b *StepRunnerBuilder) WithJobKeyVal(key, value string) *StepRunnerBuilder
Click to show internal directories.
Click to hide internal directories.