mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.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 MockEnqueuer

type MockEnqueuer struct {
	mock.Mock
}

MockEnqueuer is an autogenerated mock type for the Enqueuer type

func NewMockEnqueuer

func NewMockEnqueuer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnqueuer

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

func (_m *MockEnqueuer) EXPECT() *MockEnqueuer_Expecter

func (*MockEnqueuer) Enqueue

func (_m *MockEnqueuer) Enqueue(recordID uint32)

Enqueue provides a mock function with given fields: recordID

type MockEnqueuer_Enqueue_Call

type MockEnqueuer_Enqueue_Call struct {
	*mock.Call
}

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

func (*MockEnqueuer_Enqueue_Call) Return

func (*MockEnqueuer_Enqueue_Call) Run

func (_c *MockEnqueuer_Enqueue_Call) Run(run func(recordID uint32)) *MockEnqueuer_Enqueue_Call

func (*MockEnqueuer_Enqueue_Call) RunAndReturn

func (_c *MockEnqueuer_Enqueue_Call) RunAndReturn(run func(uint32)) *MockEnqueuer_Enqueue_Call

type MockEnqueuer_Expecter

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

func (*MockEnqueuer_Expecter) Enqueue

func (_e *MockEnqueuer_Expecter) Enqueue(recordID interface{}) *MockEnqueuer_Enqueue_Call

Enqueue is a helper method to define mock.On call

  • recordID uint32

type MockMediaServerDispatcher

type MockMediaServerDispatcher struct {
	mock.Mock
}

MockMediaServerDispatcher is an autogenerated mock type for the MediaServerDispatcher type

func NewMockMediaServerDispatcher

func NewMockMediaServerDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMediaServerDispatcher

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

func (*MockMediaServerDispatcher) RefreshAll

func (_m *MockMediaServerDispatcher) RefreshAll(ctx context.Context, libraryPath string) error

RefreshAll provides a mock function with given fields: ctx, libraryPath

type MockMediaServerDispatcher_Expecter

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

func (*MockMediaServerDispatcher_Expecter) RefreshAll

func (_e *MockMediaServerDispatcher_Expecter) RefreshAll(ctx interface{}, libraryPath interface{}) *MockMediaServerDispatcher_RefreshAll_Call

RefreshAll is a helper method to define mock.On call

  • ctx context.Context
  • libraryPath string

type MockMediaServerDispatcher_RefreshAll_Call

type MockMediaServerDispatcher_RefreshAll_Call struct {
	*mock.Call
}

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

func (*MockMediaServerDispatcher_RefreshAll_Call) Return

func (*MockMediaServerDispatcher_RefreshAll_Call) Run

func (*MockMediaServerDispatcher_RefreshAll_Call) RunAndReturn

Jump to

Keyboard shortcuts

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