mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-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 Streamable added in v0.43.2

type Streamable struct {
	mock.Mock
}

Streamable is an autogenerated mock type for the Streamable type

func NewStreamable added in v0.43.2

func NewStreamable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Streamable

NewStreamable creates a new instance of Streamable. 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 (*Streamable) Close added in v0.43.2

func (_mock *Streamable) Close()

Close provides a mock function for the type Streamable

func (*Streamable) EXPECT added in v0.46.0

func (_m *Streamable) EXPECT() *Streamable_Expecter

func (*Streamable) Fail added in v0.43.2

func (_mock *Streamable) Fail(err error)

Fail provides a mock function for the type Streamable

func (*Streamable) ID added in v0.43.2

func (_mock *Streamable) ID() string

ID provides a mock function for the type Streamable

func (*Streamable) Next added in v0.43.2

func (_mock *Streamable) Next(context1 context.Context) (interface{}, error)

Next provides a mock function for the type Streamable

func (*Streamable) Send added in v0.43.2

func (_mock *Streamable) Send(context1 context.Context, ifaceVal interface{}, duration time.Duration) error

Send provides a mock function for the type Streamable

type Streamable_Close_Call added in v0.46.0

type Streamable_Close_Call struct {
	*mock.Call
}

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

func (*Streamable_Close_Call) Return added in v0.46.0

func (*Streamable_Close_Call) Run added in v0.46.0

func (_c *Streamable_Close_Call) Run(run func()) *Streamable_Close_Call

func (*Streamable_Close_Call) RunAndReturn added in v0.46.0

func (_c *Streamable_Close_Call) RunAndReturn(run func()) *Streamable_Close_Call

type Streamable_Expecter added in v0.46.0

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

func (*Streamable_Expecter) Close added in v0.46.0

Close is a helper method to define mock.On call

func (*Streamable_Expecter) Fail added in v0.46.0

func (_e *Streamable_Expecter) Fail(err interface{}) *Streamable_Fail_Call

Fail is a helper method to define mock.On call

  • err error

func (*Streamable_Expecter) ID added in v0.46.0

ID is a helper method to define mock.On call

func (*Streamable_Expecter) Next added in v0.46.0

func (_e *Streamable_Expecter) Next(context1 interface{}) *Streamable_Next_Call

Next is a helper method to define mock.On call

  • context1 context.Context

func (*Streamable_Expecter) Send added in v0.46.0

func (_e *Streamable_Expecter) Send(context1 interface{}, ifaceVal interface{}, duration interface{}) *Streamable_Send_Call

Send is a helper method to define mock.On call

  • context1 context.Context
  • ifaceVal interface{}
  • duration time.Duration

type Streamable_Fail_Call added in v0.46.0

type Streamable_Fail_Call struct {
	*mock.Call
}

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

func (*Streamable_Fail_Call) Return added in v0.46.0

func (*Streamable_Fail_Call) Run added in v0.46.0

func (_c *Streamable_Fail_Call) Run(run func(err error)) *Streamable_Fail_Call

func (*Streamable_Fail_Call) RunAndReturn added in v0.46.0

func (_c *Streamable_Fail_Call) RunAndReturn(run func(err error)) *Streamable_Fail_Call

type Streamable_ID_Call added in v0.46.0

type Streamable_ID_Call struct {
	*mock.Call
}

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

func (*Streamable_ID_Call) Return added in v0.46.0

func (*Streamable_ID_Call) Run added in v0.46.0

func (_c *Streamable_ID_Call) Run(run func()) *Streamable_ID_Call

func (*Streamable_ID_Call) RunAndReturn added in v0.46.0

func (_c *Streamable_ID_Call) RunAndReturn(run func() string) *Streamable_ID_Call

type Streamable_Next_Call added in v0.46.0

type Streamable_Next_Call struct {
	*mock.Call
}

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

func (*Streamable_Next_Call) Return added in v0.46.0

func (_c *Streamable_Next_Call) Return(ifaceVal interface{}, err error) *Streamable_Next_Call

func (*Streamable_Next_Call) Run added in v0.46.0

func (_c *Streamable_Next_Call) Run(run func(context1 context.Context)) *Streamable_Next_Call

func (*Streamable_Next_Call) RunAndReturn added in v0.46.0

func (_c *Streamable_Next_Call) RunAndReturn(run func(context1 context.Context) (interface{}, error)) *Streamable_Next_Call

type Streamable_Send_Call added in v0.46.0

type Streamable_Send_Call struct {
	*mock.Call
}

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

func (*Streamable_Send_Call) Return added in v0.46.0

func (*Streamable_Send_Call) Run added in v0.46.0

func (_c *Streamable_Send_Call) Run(run func(context1 context.Context, ifaceVal interface{}, duration time.Duration)) *Streamable_Send_Call

func (*Streamable_Send_Call) RunAndReturn added in v0.46.0

func (_c *Streamable_Send_Call) RunAndReturn(run func(context1 context.Context, ifaceVal interface{}, duration time.Duration) error) *Streamable_Send_Call

type Subscription added in v0.43.2

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription added in v0.43.2

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscription

NewSubscription creates a new instance of Subscription. 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 (*Subscription) Channel added in v0.43.2

func (_mock *Subscription) Channel() <-chan interface{}

Channel provides a mock function for the type Subscription

func (*Subscription) EXPECT added in v0.46.0

func (_m *Subscription) EXPECT() *Subscription_Expecter

func (*Subscription) Err added in v0.43.2

func (_mock *Subscription) Err() error

Err provides a mock function for the type Subscription

func (*Subscription) ID added in v0.43.2

func (_mock *Subscription) ID() string

ID provides a mock function for the type Subscription

type Subscription_Channel_Call added in v0.46.0

type Subscription_Channel_Call struct {
	*mock.Call
}

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

func (*Subscription_Channel_Call) Return added in v0.46.0

func (_c *Subscription_Channel_Call) Return(ifaceValCh <-chan interface{}) *Subscription_Channel_Call

func (*Subscription_Channel_Call) Run added in v0.46.0

func (*Subscription_Channel_Call) RunAndReturn added in v0.46.0

func (_c *Subscription_Channel_Call) RunAndReturn(run func() <-chan interface{}) *Subscription_Channel_Call

type Subscription_Err_Call added in v0.46.0

type Subscription_Err_Call struct {
	*mock.Call
}

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

func (*Subscription_Err_Call) Return added in v0.46.0

func (*Subscription_Err_Call) Run added in v0.46.0

func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call

func (*Subscription_Err_Call) RunAndReturn added in v0.46.0

func (_c *Subscription_Err_Call) RunAndReturn(run func() error) *Subscription_Err_Call

type Subscription_Expecter added in v0.46.0

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

func (*Subscription_Expecter) Channel added in v0.46.0

Channel is a helper method to define mock.On call

func (*Subscription_Expecter) Err added in v0.46.0

Err is a helper method to define mock.On call

func (*Subscription_Expecter) ID added in v0.46.0

ID is a helper method to define mock.On call

type Subscription_ID_Call added in v0.46.0

type Subscription_ID_Call struct {
	*mock.Call
}

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

func (*Subscription_ID_Call) Return added in v0.46.0

func (*Subscription_ID_Call) Run added in v0.46.0

func (_c *Subscription_ID_Call) Run(run func()) *Subscription_ID_Call

func (*Subscription_ID_Call) RunAndReturn added in v0.46.0

func (_c *Subscription_ID_Call) RunAndReturn(run func() string) *Subscription_ID_Call

Jump to

Keyboard shortcuts

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