exec

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package exec is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecManager

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

MockExecManager is a mock of ExecManager interface.

func NewMockExecManager

func NewMockExecManager(ctrl *gomock.Controller) *MockExecManager

NewMockExecManager creates a new mock instance.

func (*MockExecManager) EXPECT

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

func (*MockExecManager) RunCmd

func (m *MockExecManager) RunCmd(name string, args []string) error

RunCmd mocks base method.

func (*MockExecManager) RunCmdInDir

func (m *MockExecManager) RunCmdInDir(name string, args []string, cwd string) error

RunCmdInDir mocks base method.

func (*MockExecManager) RunInTempDir

func (m *MockExecManager) RunInTempDir(dir, pattern string, fn func(string) error) error

RunInTempDir mocks base method. NOTE(nic): mockgen creates this mock wrong, and I'm not sure what to do about it. If you've run `task mockgen`, and it removed this code, and now your tests are failing, put this code back.

type MockExecManagerMockRecorder

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

MockExecManagerMockRecorder is the mock recorder for MockExecManager.

func (*MockExecManagerMockRecorder) RunCmd

func (mr *MockExecManagerMockRecorder) RunCmd(name, args interface{}) *gomock.Call

RunCmd indicates an expected call of RunCmd.

func (*MockExecManagerMockRecorder) RunCmdInDir

func (mr *MockExecManagerMockRecorder) RunCmdInDir(name, args, cwd interface{}) *gomock.Call

RunCmdInDir indicates an expected call of RunCmdInDir.

func (*MockExecManagerMockRecorder) RunInTempDir

func (mr *MockExecManagerMockRecorder) RunInTempDir(dir, pattern, fn interface{}) *gomock.Call

RunInTempDir indicates an expected call of RunInTempDir.

Jump to

Keyboard shortcuts

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