Documentation
¶
Index ¶
- type MockLSBLK
- func (_m *MockLSBLK) BlockDeviceInfos(ctx context.Context, bs []lsblk.BlockDevice) (lsblk.BlockDeviceInfos, error)
- func (_m *MockLSBLK) EXPECT() *MockLSBLK_Expecter
- func (_m *MockLSBLK) IsUsableLoopDev(ctx context.Context, b lsblk.BlockDevice) (bool, error)
- func (_m *MockLSBLK) ListBlockDevices(ctx context.Context) ([]lsblk.BlockDevice, error)
- type MockLSBLK_BlockDeviceInfos_Call
- func (_c *MockLSBLK_BlockDeviceInfos_Call) Return(_a0 lsblk.BlockDeviceInfos, _a1 error) *MockLSBLK_BlockDeviceInfos_Call
- func (_c *MockLSBLK_BlockDeviceInfos_Call) Run(run func(ctx context.Context, bs []lsblk.BlockDevice)) *MockLSBLK_BlockDeviceInfos_Call
- func (_c *MockLSBLK_BlockDeviceInfos_Call) RunAndReturn(run func(context.Context, []lsblk.BlockDevice) (lsblk.BlockDeviceInfos, error)) *MockLSBLK_BlockDeviceInfos_Call
- type MockLSBLK_Expecter
- func (_e *MockLSBLK_Expecter) BlockDeviceInfos(ctx interface{}, bs interface{}) *MockLSBLK_BlockDeviceInfos_Call
- func (_e *MockLSBLK_Expecter) IsUsableLoopDev(ctx interface{}, b interface{}) *MockLSBLK_IsUsableLoopDev_Call
- func (_e *MockLSBLK_Expecter) ListBlockDevices(ctx interface{}) *MockLSBLK_ListBlockDevices_Call
- type MockLSBLK_IsUsableLoopDev_Call
- func (_c *MockLSBLK_IsUsableLoopDev_Call) Return(_a0 bool, _a1 error) *MockLSBLK_IsUsableLoopDev_Call
- func (_c *MockLSBLK_IsUsableLoopDev_Call) Run(run func(ctx context.Context, b lsblk.BlockDevice)) *MockLSBLK_IsUsableLoopDev_Call
- func (_c *MockLSBLK_IsUsableLoopDev_Call) RunAndReturn(run func(context.Context, lsblk.BlockDevice) (bool, error)) *MockLSBLK_IsUsableLoopDev_Call
- type MockLSBLK_ListBlockDevices_Call
- func (_c *MockLSBLK_ListBlockDevices_Call) Return(_a0 []lsblk.BlockDevice, _a1 error) *MockLSBLK_ListBlockDevices_Call
- func (_c *MockLSBLK_ListBlockDevices_Call) Run(run func(ctx context.Context)) *MockLSBLK_ListBlockDevices_Call
- func (_c *MockLSBLK_ListBlockDevices_Call) RunAndReturn(run func(context.Context) ([]lsblk.BlockDevice, error)) *MockLSBLK_ListBlockDevices_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLSBLK ¶
MockLSBLK is an autogenerated mock type for the LSBLK type
func NewMockLSBLK ¶
NewMockLSBLK creates a new instance of MockLSBLK. 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 (*MockLSBLK) BlockDeviceInfos ¶
func (_m *MockLSBLK) BlockDeviceInfos(ctx context.Context, bs []lsblk.BlockDevice) (lsblk.BlockDeviceInfos, error)
BlockDeviceInfos provides a mock function with given fields: ctx, bs
func (*MockLSBLK) EXPECT ¶
func (_m *MockLSBLK) EXPECT() *MockLSBLK_Expecter
func (*MockLSBLK) IsUsableLoopDev ¶
IsUsableLoopDev provides a mock function with given fields: ctx, b
func (*MockLSBLK) ListBlockDevices ¶
ListBlockDevices provides a mock function with given fields: ctx
type MockLSBLK_BlockDeviceInfos_Call ¶
MockLSBLK_BlockDeviceInfos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockDeviceInfos'
func (*MockLSBLK_BlockDeviceInfos_Call) Return ¶
func (_c *MockLSBLK_BlockDeviceInfos_Call) Return(_a0 lsblk.BlockDeviceInfos, _a1 error) *MockLSBLK_BlockDeviceInfos_Call
func (*MockLSBLK_BlockDeviceInfos_Call) Run ¶
func (_c *MockLSBLK_BlockDeviceInfos_Call) Run(run func(ctx context.Context, bs []lsblk.BlockDevice)) *MockLSBLK_BlockDeviceInfos_Call
func (*MockLSBLK_BlockDeviceInfos_Call) RunAndReturn ¶
func (_c *MockLSBLK_BlockDeviceInfos_Call) RunAndReturn(run func(context.Context, []lsblk.BlockDevice) (lsblk.BlockDeviceInfos, error)) *MockLSBLK_BlockDeviceInfos_Call
type MockLSBLK_Expecter ¶
type MockLSBLK_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLSBLK_Expecter) BlockDeviceInfos ¶
func (_e *MockLSBLK_Expecter) BlockDeviceInfos(ctx interface{}, bs interface{}) *MockLSBLK_BlockDeviceInfos_Call
BlockDeviceInfos is a helper method to define mock.On call
- ctx context.Context
- bs []lsblk.BlockDevice
func (*MockLSBLK_Expecter) IsUsableLoopDev ¶
func (_e *MockLSBLK_Expecter) IsUsableLoopDev(ctx interface{}, b interface{}) *MockLSBLK_IsUsableLoopDev_Call
IsUsableLoopDev is a helper method to define mock.On call
- ctx context.Context
- b lsblk.BlockDevice
func (*MockLSBLK_Expecter) ListBlockDevices ¶
func (_e *MockLSBLK_Expecter) ListBlockDevices(ctx interface{}) *MockLSBLK_ListBlockDevices_Call
ListBlockDevices is a helper method to define mock.On call
- ctx context.Context
type MockLSBLK_IsUsableLoopDev_Call ¶
MockLSBLK_IsUsableLoopDev_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsUsableLoopDev'
func (*MockLSBLK_IsUsableLoopDev_Call) Return ¶
func (_c *MockLSBLK_IsUsableLoopDev_Call) Return(_a0 bool, _a1 error) *MockLSBLK_IsUsableLoopDev_Call
func (*MockLSBLK_IsUsableLoopDev_Call) Run ¶
func (_c *MockLSBLK_IsUsableLoopDev_Call) Run(run func(ctx context.Context, b lsblk.BlockDevice)) *MockLSBLK_IsUsableLoopDev_Call
func (*MockLSBLK_IsUsableLoopDev_Call) RunAndReturn ¶
func (_c *MockLSBLK_IsUsableLoopDev_Call) RunAndReturn(run func(context.Context, lsblk.BlockDevice) (bool, error)) *MockLSBLK_IsUsableLoopDev_Call
type MockLSBLK_ListBlockDevices_Call ¶
MockLSBLK_ListBlockDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlockDevices'
func (*MockLSBLK_ListBlockDevices_Call) Return ¶
func (_c *MockLSBLK_ListBlockDevices_Call) Return(_a0 []lsblk.BlockDevice, _a1 error) *MockLSBLK_ListBlockDevices_Call
func (*MockLSBLK_ListBlockDevices_Call) Run ¶
func (_c *MockLSBLK_ListBlockDevices_Call) Run(run func(ctx context.Context)) *MockLSBLK_ListBlockDevices_Call
func (*MockLSBLK_ListBlockDevices_Call) RunAndReturn ¶
func (_c *MockLSBLK_ListBlockDevices_Call) RunAndReturn(run func(context.Context) ([]lsblk.BlockDevice, error)) *MockLSBLK_ListBlockDevices_Call