Documentation
¶
Index ¶
- type MockCLIRunner
- type MockCLIRunner_Expecter
- type MockCLIRunner_Run_Call
- func (_c *MockCLIRunner_Run_Call) Return(callResult *cre.CallResult, err error) *MockCLIRunner_Run_Call
- func (_c *MockCLIRunner_Run_Call) Run(run func(ctx context.Context, args ...string)) *MockCLIRunner_Run_Call
- func (_c *MockCLIRunner_Run_Call) RunAndReturn(run func(ctx context.Context, args ...string) (*cre.CallResult, error)) *MockCLIRunner_Run_Call
- type MockClient
- type MockClient_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCLIRunner ¶ added in v0.93.0
MockCLIRunner is an autogenerated mock type for the CLIRunner type
func NewMockCLIRunner ¶ added in v0.93.0
func NewMockCLIRunner(t interface {
mock.TestingT
Cleanup(func())
}) *MockCLIRunner
NewMockCLIRunner creates a new instance of MockCLIRunner. 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 (*MockCLIRunner) EXPECT ¶ added in v0.93.0
func (_m *MockCLIRunner) EXPECT() *MockCLIRunner_Expecter
func (*MockCLIRunner) Run ¶ added in v0.93.0
func (_mock *MockCLIRunner) Run(ctx context.Context, args ...string) (*cre.CallResult, error)
Run provides a mock function for the type MockCLIRunner
type MockCLIRunner_Expecter ¶ added in v0.93.0
type MockCLIRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCLIRunner_Expecter) Run ¶ added in v0.93.0
func (_e *MockCLIRunner_Expecter) Run(ctx interface{}, args ...interface{}) *MockCLIRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
- args ...string
type MockCLIRunner_Run_Call ¶ added in v0.93.0
MockCLIRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockCLIRunner_Run_Call) Return ¶ added in v0.93.0
func (_c *MockCLIRunner_Run_Call) Return(callResult *cre.CallResult, err error) *MockCLIRunner_Run_Call
func (*MockCLIRunner_Run_Call) Run ¶ added in v0.93.0
func (_c *MockCLIRunner_Run_Call) Run(run func(ctx context.Context, args ...string)) *MockCLIRunner_Run_Call
func (*MockCLIRunner_Run_Call) RunAndReturn ¶ added in v0.93.0
func (_c *MockCLIRunner_Run_Call) RunAndReturn(run func(ctx context.Context, args ...string) (*cre.CallResult, error)) *MockCLIRunner_Run_Call
type MockClient ¶ added in v0.93.0
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶ added in v0.93.0
func NewMockClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockClient
NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT ¶ added in v0.93.0
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_Expecter ¶ added in v0.93.0
type MockClient_Expecter struct {
// contains filtered or unexported fields
}