Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 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 (_m *Streamable) Close()

Close provides a mock function with no fields

func (*Streamable) Fail added in v0.43.2

func (_m *Streamable) Fail(_a0 error)

Fail provides a mock function with given fields: _a0

func (*Streamable) ID added in v0.43.2

func (_m *Streamable) ID() string

ID provides a mock function with no fields

func (*Streamable) Next added in v0.43.2

func (_m *Streamable) Next(_a0 context.Context) (interface{}, error)

Next provides a mock function with given fields: _a0

func (*Streamable) Send added in v0.43.2

func (_m *Streamable) Send(_a0 context.Context, _a1 interface{}, _a2 time.Duration) error

Send provides a mock function with given fields: _a0, _a1, _a2

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 (_m *Subscription) Channel() <-chan interface{}

Channel provides a mock function with no fields

func (*Subscription) Err added in v0.43.2

func (_m *Subscription) Err() error

Err provides a mock function with no fields

func (*Subscription) ID added in v0.43.2

func (_m *Subscription) ID() string

ID provides a mock function with no fields

Jump to

Keyboard shortcuts

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