mockalsp

package
v0.37.17-patch.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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