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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

type MockManager struct {
	mock.Mock
}

MockManager is an autogenerated mock type for the Manager type

func NewMockManager

func NewMockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockManager

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

func (_m *MockManager) EXPECT() *MockManager_Expecter

func (*MockManager) Fetch

func (_m *MockManager) Fetch(ctx context.Context, kind string, id uint32, src string) error

Fetch provides a mock function with given fields: ctx, kind, id, src

func (*MockManager) Path

func (_m *MockManager) Path(kind string, id uint32) string

Path provides a mock function with given fields: kind, id

func (*MockManager) Serve

func (_m *MockManager) Serve(w http.ResponseWriter, r *http.Request, kind string, id uint32)

Serve provides a mock function with given fields: w, r, kind, id

type MockManager_Expecter

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

func (*MockManager_Expecter) Fetch

func (_e *MockManager_Expecter) Fetch(ctx interface{}, kind interface{}, id interface{}, src interface{}) *MockManager_Fetch_Call

Fetch is a helper method to define mock.On call

  • ctx context.Context
  • kind string
  • id uint32
  • src string

func (*MockManager_Expecter) Path

func (_e *MockManager_Expecter) Path(kind interface{}, id interface{}) *MockManager_Path_Call

Path is a helper method to define mock.On call

  • kind string
  • id uint32

func (*MockManager_Expecter) Serve

func (_e *MockManager_Expecter) Serve(w interface{}, r interface{}, kind interface{}, id interface{}) *MockManager_Serve_Call

Serve is a helper method to define mock.On call

  • w http.ResponseWriter
  • r *http.Request
  • kind string
  • id uint32

type MockManager_Fetch_Call

type MockManager_Fetch_Call struct {
	*mock.Call
}

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

func (*MockManager_Fetch_Call) Return

func (*MockManager_Fetch_Call) Run

func (_c *MockManager_Fetch_Call) Run(run func(ctx context.Context, kind string, id uint32, src string)) *MockManager_Fetch_Call

func (*MockManager_Fetch_Call) RunAndReturn

type MockManager_Path_Call

type MockManager_Path_Call struct {
	*mock.Call
}

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

func (*MockManager_Path_Call) Return

func (*MockManager_Path_Call) Run

func (_c *MockManager_Path_Call) Run(run func(kind string, id uint32)) *MockManager_Path_Call

func (*MockManager_Path_Call) RunAndReturn

func (_c *MockManager_Path_Call) RunAndReturn(run func(string, uint32) string) *MockManager_Path_Call

type MockManager_Serve_Call

type MockManager_Serve_Call struct {
	*mock.Call
}

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

func (*MockManager_Serve_Call) Return

func (*MockManager_Serve_Call) Run

func (*MockManager_Serve_Call) RunAndReturn

Jump to

Keyboard shortcuts

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