cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cmd is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	PRNumNotExistError = errors.New("require PR number argument")
)

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Stdout io.Writer
	Runner Runner
}

func New

func New(stdout io.Writer, runner Runner) *CLI

func (*CLI) Execute

func (cli *CLI) Execute(args []string) error

type MockRunner

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

MockRunner is a mock of Runner interface.

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRunner) Run

func (m *MockRunner) Run() (int, string, error)

Run mocks base method.

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run.

type Runner

type Runner interface {
	Run() (int, string, error)
}

Jump to

Keyboard shortcuts

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