Documentation
¶
Index ¶
- type MockBus
- type MockBus_Expecter
- type MockBus_Subscribe_Call
- func (_c *MockBus_Subscribe_Call) Return(subscription *eventbus.Subscription) *MockBus_Subscribe_Call
- func (_c *MockBus_Subscribe_Call) Run(run func(size int, policy eventbus.Overflow)) *MockBus_Subscribe_Call
- func (_c *MockBus_Subscribe_Call) RunAndReturn(run func(size int, policy eventbus.Overflow) *eventbus.Subscription) *MockBus_Subscribe_Call
- type MockBus_Unsubscribe_Call
- type MockCache
- type MockCache_Expecter
- type MockCache_Get_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBus ¶
MockBus is an autogenerated mock type for the Bus type
func NewMockBus ¶
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) 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 ¶
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 (_c *MockBus_Subscribe_Call) Return(subscription *eventbus.Subscription) *MockBus_Subscribe_Call
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 ¶
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 (_c *MockBus_Unsubscribe_Call) Return() *MockBus_Unsubscribe_Call
func (*MockBus_Unsubscribe_Call) Run ¶
func (_c *MockBus_Unsubscribe_Call) Run(run func(s *eventbus.Subscription)) *MockBus_Unsubscribe_Call
func (*MockBus_Unsubscribe_Call) RunAndReturn ¶
func (_c *MockBus_Unsubscribe_Call) RunAndReturn(run func(s *eventbus.Subscription)) *MockBus_Unsubscribe_Call
type MockCache ¶
MockCache is an autogenerated mock type for the Cache type
func NewMockCache ¶
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
type MockCache_Expecter ¶
type MockCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCache_Expecter) Get ¶
func (_e *MockCache_Expecter) Get(key any) *MockCache_Get_Call
Get is a helper method to define mock.On call
- key string
type MockCache_Get_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 (_c *MockCache_Get_Call) Return(value livecache.Value, b bool) *MockCache_Get_Call
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