dmsetup

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDmsetup

type MockDmsetup struct {
	mock.Mock
}

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

func (*MockDmsetup) Remove

func (_m *MockDmsetup) Remove(ctx context.Context, deviceName string) error

Remove provides a mock function with given fields: ctx, deviceName

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

type MockDmsetup_Remove_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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