wipefs

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 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 MockWipefs

type MockWipefs struct {
	mock.Mock
}

MockWipefs is an autogenerated mock type for the Wipefs type

func NewMockWipefs

func NewMockWipefs(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWipefs

NewMockWipefs creates a new instance of MockWipefs. 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 (*MockWipefs) EXPECT

func (_m *MockWipefs) EXPECT() *MockWipefs_Expecter

func (*MockWipefs) Wipe

func (_m *MockWipefs) Wipe(ctx context.Context, deviceName string) error

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

type MockWipefs_Expecter

type MockWipefs_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockWipefs_Expecter) Wipe

func (_e *MockWipefs_Expecter) Wipe(ctx interface{}, deviceName interface{}) *MockWipefs_Wipe_Call

Wipe is a helper method to define mock.On call

  • ctx context.Context
  • deviceName string

type MockWipefs_Wipe_Call

type MockWipefs_Wipe_Call struct {
	*mock.Call
}

MockWipefs_Wipe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wipe'

func (*MockWipefs_Wipe_Call) Return

func (*MockWipefs_Wipe_Call) Run

func (_c *MockWipefs_Wipe_Call) Run(run func(ctx context.Context, deviceName string)) *MockWipefs_Wipe_Call

func (*MockWipefs_Wipe_Call) RunAndReturn

func (_c *MockWipefs_Wipe_Call) RunAndReturn(run func(context.Context, string) error) *MockWipefs_Wipe_Call

Jump to

Keyboard shortcuts

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