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

mock

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 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 SpamRecordCache

type SpamRecordCache struct {
	mock.Mock
}

SpamRecordCache is an autogenerated mock type for the SpamRecordCache type

func NewSpamRecordCache

func NewSpamRecordCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpamRecordCache

NewSpamRecordCache creates a new instance of SpamRecordCache. 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 (*SpamRecordCache) AdjustWithInit added in v0.33.1

func (_m *SpamRecordCache) AdjustWithInit(originId flow.Identifier, adjustFunc model.RecordAdjustFunc) (float64, error)

AdjustWithInit provides a mock function with given fields: originId, adjustFunc

func (*SpamRecordCache) Get

Get provides a mock function with given fields: originId

func (*SpamRecordCache) Identities

func (_m *SpamRecordCache) Identities() []flow.Identifier

Identities provides a mock function with no fields

func (*SpamRecordCache) Remove

func (_m *SpamRecordCache) Remove(originId flow.Identifier) bool

Remove provides a mock function with given fields: originId

func (*SpamRecordCache) Size

func (_m *SpamRecordCache) Size() uint

Size 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