Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *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.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) Open ¶
func (_m *MockInterface) Open(url string) error
Open provides a mock function with given fields: url
func (*MockInterface) OpenCommand ¶
OpenCommand provides a mock function with given fields: ctx, url, command
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) Open ¶
func (_e *MockInterface_Expecter) Open(url interface{}) *MockInterface_Open_Call
Open is a helper method to define mock.On call
- url string
func (*MockInterface_Expecter) OpenCommand ¶
func (_e *MockInterface_Expecter) OpenCommand(ctx interface{}, url interface{}, command interface{}) *MockInterface_OpenCommand_Call
OpenCommand is a helper method to define mock.On call
- ctx context.Context
- url string
- command string
type MockInterface_OpenCommand_Call ¶
MockInterface_OpenCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenCommand'
func (*MockInterface_OpenCommand_Call) Return ¶
func (_c *MockInterface_OpenCommand_Call) Return(_a0 error) *MockInterface_OpenCommand_Call
func (*MockInterface_OpenCommand_Call) Run ¶
func (_c *MockInterface_OpenCommand_Call) Run(run func(ctx context.Context, url string, command string)) *MockInterface_OpenCommand_Call
type MockInterface_Open_Call ¶
MockInterface_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockInterface_Open_Call) Return ¶
func (_c *MockInterface_Open_Call) Return(_a0 error) *MockInterface_Open_Call
func (*MockInterface_Open_Call) Run ¶
func (_c *MockInterface_Open_Call) Run(run func(url string)) *MockInterface_Open_Call