mockalsp

package
v0.35.15-crescendo-pre... Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MisbehaviorReportOpt

type MisbehaviorReportOpt struct {
	mock.Mock
}

MisbehaviorReportOpt is an autogenerated mock type for the MisbehaviorReportOpt type

func NewMisbehaviorReportOpt

func NewMisbehaviorReportOpt(t interface {
	mock.TestingT
	Cleanup(func())
}) *MisbehaviorReportOpt

NewMisbehaviorReportOpt creates a new instance of MisbehaviorReportOpt. 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 (*MisbehaviorReportOpt) Execute

Execute provides a mock function with given fields: r

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 given 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 given fields:

Jump to

Keyboard shortcuts

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