runner

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRunner

type BaseRunner struct {
	// contains filtered or unexported fields
}

func (*BaseRunner) Run

func (b *BaseRunner) Run(command []string, ctx context.Context) error

type BaseRunnerPart

type BaseRunnerPart interface {
	Run(command []string, ctx context.Context) error
}

type GoRunner

type GoRunner struct {
	*BaseRunner
}

func (*GoRunner) GetRunCommand

func (g *GoRunner) GetRunCommand(cases []*openapi.ObjectFunctionWithSignature) string

type MavenRunner

type MavenRunner struct {
	*BaseRunner
}

func (*MavenRunner) GetRunCommand

func (m *MavenRunner) GetRunCommand(cases []*openapi.ObjectFunctionWithSignature) string

type PytestRunner

type PytestRunner struct {
	*BaseRunner
}

func (*PytestRunner) GetRunCommand

func (p *PytestRunner) GetRunCommand(cases []*openapi.ObjectFunctionWithSignature) string

type Runner

type Runner interface {
	BaseRunnerPart
	GetRunCommand(cases []*openapi.ObjectFunctionWithSignature) string
}

func GetRunner

func GetRunner(runnerType object.RunnerType, conf object.SharedConfig) (Runner, error)

func NewGolangRunner

func NewGolangRunner(conf *object.SharedConfig) (Runner, error)

func NewMavenRunner

func NewMavenRunner(conf *object.SharedConfig) (Runner, error)

func NewPytestRunner

func NewPytestRunner(conf *object.SharedConfig) (Runner, error)

Jump to

Keyboard shortcuts

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