mocktest

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnitTestCallbackCollector

type UnitTestCallbackCollector struct {
	mock.Mock
}

UnitTestCallbackCollector is an autogenerated mock type for the UnitTestCallbackCollector type

func NewUnitTestCallbackCollector

func NewUnitTestCallbackCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnitTestCallbackCollector

NewUnitTestCallbackCollector creates a new instance of UnitTestCallbackCollector. 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 (*UnitTestCallbackCollector) CollectRedisSubscribeMsgs

func (_mock *UnitTestCallbackCollector) CollectRedisSubscribeMsgs(ctx context.Context, msg redis.PubSubMessage)

CollectRedisSubscribeMsgs provides a mock function for the type UnitTestCallbackCollector

func (*UnitTestCallbackCollector) EXPECT

type UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call

type UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call struct {
	*mock.Call
}

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

func (*UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Return

func (*UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Run

func (*UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) RunAndReturn

type UnitTestCallbackCollector_Expecter

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

func (*UnitTestCallbackCollector_Expecter) CollectRedisSubscribeMsgs

func (_e *UnitTestCallbackCollector_Expecter) CollectRedisSubscribeMsgs(ctx interface{}, msg interface{}) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call

CollectRedisSubscribeMsgs is a helper method to define mock.On call

  • ctx context.Context
  • msg redis.PubSubMessage

Jump to

Keyboard shortcuts

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