lsblk

package
v4.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLSBLK

type MockLSBLK struct {
	mock.Mock
}

MockLSBLK is an autogenerated mock type for the LSBLK type

func NewMockLSBLK

func NewMockLSBLK(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLSBLK

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

func (_m *MockLSBLK) IsUsableLoopDev(ctx context.Context, b lsblk.BlockDevice) (bool, error)

IsUsableLoopDev provides a mock function with given fields: ctx, b

func (*MockLSBLK) ListBlockDevices

func (_m *MockLSBLK) ListBlockDevices(ctx context.Context) ([]lsblk.BlockDevice, error)

ListBlockDevices provides a mock function with given fields: ctx

type MockLSBLK_BlockDeviceInfos_Call

type MockLSBLK_BlockDeviceInfos_Call struct {
	*mock.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 (*MockLSBLK_BlockDeviceInfos_Call) Run

func (*MockLSBLK_BlockDeviceInfos_Call) RunAndReturn

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

type MockLSBLK_IsUsableLoopDev_Call struct {
	*mock.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 (*MockLSBLK_IsUsableLoopDev_Call) Run

func (*MockLSBLK_IsUsableLoopDev_Call) RunAndReturn

type MockLSBLK_ListBlockDevices_Call

type MockLSBLK_ListBlockDevices_Call struct {
	*mock.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 (*MockLSBLK_ListBlockDevices_Call) Run

func (*MockLSBLK_ListBlockDevices_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL