step

package
v0.0.0-...-c1cd9f0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Packages  []string
	OutputDir string
}

type ExportOpts

type ExportOpts struct {
	CodeCoveragePth string
}

type FileManager

type FileManager interface {
	Create(name string) (*os.File, error)
	MkdirAll(path string, perm os.FileMode) error
	Open(path string) (io.Reader, error)
	Write(path string, value string, perm os.FileMode) error
	RemoveAll(path string) error
}

FileManager ... TODO: fileutil.FileManager interface should be extended with more methods

func NewFileManager

func NewFileManager(manager fileutil.FileManager) FileManager

type GoTestRunner

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

func NewGoTestRunner

func NewGoTestRunner(
	logger log.Logger,
	inputParser stepconf.InputParser,
	envRepo env.Repository,
	cmdFactory command.Factory,
	outputExporter OutputExporter,
	pathProvider pathutil.PathProvider,
	fileManager FileManager,
) GoTestRunner

func (GoTestRunner) ExportOutput

func (s GoTestRunner) ExportOutput(opts ExportOpts) error

func (GoTestRunner) ProcessInputs

func (s GoTestRunner) ProcessInputs() (Config, error)

func (GoTestRunner) Run

func (s GoTestRunner) Run(opts RunOpts) (*RunResult, error)

type Inputs

type Inputs struct {
	Packages  string `env:"packages,required"`
	OutputDir string `env:"output_dir,required"`
}

type OutputExporter

type OutputExporter interface {
	ExportOutput(key, value string) error
}

OutputExporter ... TODO: export.NewExporter should return an interface

type RunOpts

type RunOpts struct {
	Packages  []string
	OutputDir string
}

type RunResult

type RunResult struct {
	CodeCoveragePth string
}

Jump to

Keyboard shortcuts

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