Documentation
¶
Index ¶
- type MockRunner
- type MockRunner_Call_Call
- func (_c *MockRunner_Call_Call) Return(callResult *cre.CallResult, err error) *MockRunner_Call_Call
- func (_c *MockRunner_Call_Call) Run(run func(ctx context.Context, args ...string)) *MockRunner_Call_Call
- func (_c *MockRunner_Call_Call) RunAndReturn(run func(ctx context.Context, args ...string) (*cre.CallResult, error)) *MockRunner_Call_Call
- type MockRunner_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRunner ¶
MockRunner is an autogenerated mock type for the Runner type
func NewMockRunner ¶
func NewMockRunner(t interface {
mock.TestingT
Cleanup(func())
}) *MockRunner
NewMockRunner creates a new instance of MockRunner. 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 (*MockRunner) EXPECT ¶
func (_m *MockRunner) EXPECT() *MockRunner_Expecter
func (*MockRunner) Run ¶
func (_mock *MockRunner) Run(ctx context.Context, args ...string) (*cre.CallResult, error)
Call provides a mock function for the type MockRunner
type MockRunner_Call_Call ¶
MockRunner_Call_Call is a *mock.Run that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockRunner_Call_Call) Return ¶
func (_c *MockRunner_Call_Call) Return(callResult *cre.CallResult, err error) *MockRunner_Call_Call
func (*MockRunner_Call_Call) Run ¶
func (_c *MockRunner_Call_Call) Run(run func(ctx context.Context, args ...string)) *MockRunner_Call_Call
func (*MockRunner_Call_Call) RunAndReturn ¶
func (_c *MockRunner_Call_Call) RunAndReturn(run func(ctx context.Context, args ...string) (*cre.CallResult, error)) *MockRunner_Call_Call
type MockRunner_Expecter ¶
type MockRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRunner_Expecter) Call ¶
func (_e *MockRunner_Expecter) Call(ctx interface{}, args ...interface{}) *MockRunner_Call_Call
Call is a helper method to define mock.On call
- ctx context.Context
- args ...string
Click to show internal directories.
Click to hide internal directories.