goclitest

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResponse

type MockResponse struct {
	Args   []string
	Output string
	Error  error
}

func GetLatestVersionMockResponse

func GetLatestVersionMockResponse(pathURL, version string) MockResponse

func GetModuleInfoMockResponse

func GetModuleInfoMockResponse(gobin, binaryName, output string) MockResponse

type TestGoCmdRunner

type TestGoCmdRunner struct {
	Responses []MockResponse
}

func (*TestGoCmdRunner) RunGoCommand

func (r *TestGoCmdRunner) RunGoCommand(args ...string) (string, error)

Jump to

Keyboard shortcuts

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