mock_shell

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 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 MockCmdRunner

type MockCmdRunner struct {
	mock.Mock
}

MockCmdRunner is an autogenerated mock type for the CmdRunner type

func NewMockCmdRunner

func NewMockCmdRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCmdRunner

NewMockCmdRunner creates a new instance of MockCmdRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCmdRunner) EXPECT

func (_m *MockCmdRunner) EXPECT() *MockCmdRunner_Expecter

func (*MockCmdRunner) Run

func (_m *MockCmdRunner) Run() error

Run provides a mock function with no fields

type MockCmdRunner_Expecter

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

func (*MockCmdRunner_Expecter) Run

Run is a helper method to define mock.On call

type MockCmdRunner_Run_Call

type MockCmdRunner_Run_Call struct {
	*mock.Call
}

MockCmdRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*MockCmdRunner_Run_Call) Return

func (*MockCmdRunner_Run_Call) Run

func (_c *MockCmdRunner_Run_Call) Run(run func()) *MockCmdRunner_Run_Call

func (*MockCmdRunner_Run_Call) RunAndReturn

func (_c *MockCmdRunner_Run_Call) RunAndReturn(run func() error) *MockCmdRunner_Run_Call

type MockInterface

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface

func NewMockInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockInterface) EXPECT

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

func (*MockInterface) NewCommand

func (_m *MockInterface) NewCommand(name string, args ...string) shell.CmdRunner

NewCommand provides a mock function with given fields: name, args

type MockInterface_Expecter

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

func (*MockInterface_Expecter) NewCommand

func (_e *MockInterface_Expecter) NewCommand(name interface{}, args ...interface{}) *MockInterface_NewCommand_Call

NewCommand is a helper method to define mock.On call

  • name string
  • args ...string

type MockInterface_NewCommand_Call

type MockInterface_NewCommand_Call struct {
	*mock.Call
}

MockInterface_NewCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewCommand'

func (*MockInterface_NewCommand_Call) Return

func (*MockInterface_NewCommand_Call) Run

func (*MockInterface_NewCommand_Call) RunAndReturn

Jump to

Keyboard shortcuts

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