mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBus

type MockBus struct {
	mock.Mock
}

MockBus is an autogenerated mock type for the Bus type

func NewMockBus

func NewMockBus(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBus

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

func (_m *MockBus) EXPECT() *MockBus_Expecter

func (*MockBus) Subscribe

func (_mock *MockBus) Subscribe(size int, policy eventbus.Overflow) *eventbus.Subscription

Subscribe provides a mock function for the type MockBus

func (*MockBus) Unsubscribe

func (_mock *MockBus) Unsubscribe(s *eventbus.Subscription)

Unsubscribe provides a mock function for the type MockBus

type MockBus_Expecter

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

func (*MockBus_Expecter) Subscribe

func (_e *MockBus_Expecter) Subscribe(size any, policy any) *MockBus_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • size int
  • policy eventbus.Overflow

func (*MockBus_Expecter) Unsubscribe

func (_e *MockBus_Expecter) Unsubscribe(s any) *MockBus_Unsubscribe_Call

Unsubscribe is a helper method to define mock.On call

  • s *eventbus.Subscription

type MockBus_Subscribe_Call

type MockBus_Subscribe_Call struct {
	*mock.Call
}

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

func (*MockBus_Subscribe_Call) Return

func (*MockBus_Subscribe_Call) Run

func (_c *MockBus_Subscribe_Call) Run(run func(size int, policy eventbus.Overflow)) *MockBus_Subscribe_Call

func (*MockBus_Subscribe_Call) RunAndReturn

func (_c *MockBus_Subscribe_Call) RunAndReturn(run func(size int, policy eventbus.Overflow) *eventbus.Subscription) *MockBus_Subscribe_Call

type MockBus_Unsubscribe_Call

type MockBus_Unsubscribe_Call struct {
	*mock.Call
}

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

func (*MockBus_Unsubscribe_Call) Return

func (*MockBus_Unsubscribe_Call) Run

func (*MockBus_Unsubscribe_Call) RunAndReturn

type MockCache

type MockCache struct {
	mock.Mock
}

MockCache is an autogenerated mock type for the Cache type

func NewMockCache

func NewMockCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCache

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

func (_m *MockCache) EXPECT() *MockCache_Expecter

func (*MockCache) Get

func (_mock *MockCache) Get(key string) (livecache.Value, bool)

Get provides a mock function for the type MockCache

type MockCache_Expecter

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

func (*MockCache_Expecter) Get

Get is a helper method to define mock.On call

  • key string

type MockCache_Get_Call

type MockCache_Get_Call struct {
	*mock.Call
}

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

func (*MockCache_Get_Call) Return

func (*MockCache_Get_Call) Run

func (_c *MockCache_Get_Call) Run(run func(key string)) *MockCache_Get_Call

func (*MockCache_Get_Call) RunAndReturn

func (_c *MockCache_Get_Call) RunAndReturn(run func(key string) (livecache.Value, bool)) *MockCache_Get_Call

Jump to

Keyboard shortcuts

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