Documentation
¶
Index ¶
- type MockDmsetup
- type MockDmsetup_Expecter
- type MockDmsetup_Remove_Call
- func (_c *MockDmsetup_Remove_Call) Return(_a0 error) *MockDmsetup_Remove_Call
- func (_c *MockDmsetup_Remove_Call) Run(run func(ctx context.Context, deviceName string)) *MockDmsetup_Remove_Call
- func (_c *MockDmsetup_Remove_Call) RunAndReturn(run func(context.Context, string) error) *MockDmsetup_Remove_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDmsetup ¶
MockDmsetup is an autogenerated mock type for the Dmsetup type
func NewMockDmsetup ¶
func NewMockDmsetup(t interface {
mock.TestingT
Cleanup(func())
}) *MockDmsetup
NewMockDmsetup creates a new instance of MockDmsetup. 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 (*MockDmsetup) EXPECT ¶
func (_m *MockDmsetup) EXPECT() *MockDmsetup_Expecter
type MockDmsetup_Expecter ¶
type MockDmsetup_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDmsetup_Expecter) Remove ¶
func (_e *MockDmsetup_Expecter) Remove(ctx interface{}, deviceName interface{}) *MockDmsetup_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- deviceName string
type MockDmsetup_Remove_Call ¶
MockDmsetup_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MockDmsetup_Remove_Call) Return ¶
func (_c *MockDmsetup_Remove_Call) Return(_a0 error) *MockDmsetup_Remove_Call
func (*MockDmsetup_Remove_Call) Run ¶
func (_c *MockDmsetup_Remove_Call) Run(run func(ctx context.Context, deviceName string)) *MockDmsetup_Remove_Call
func (*MockDmsetup_Remove_Call) RunAndReturn ¶
func (_c *MockDmsetup_Remove_Call) RunAndReturn(run func(context.Context, string) error) *MockDmsetup_Remove_Call
Click to show internal directories.
Click to hide internal directories.