mocks

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.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 Comparable

type Comparable struct {
	mock.Mock
}

Comparable is an autogenerated mock type for the Comparable type

func NewComparable added in v1.15.1

func NewComparable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Comparable

NewComparable creates a new instance of Comparable. 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 (*Comparable) Compare

func (_m *Comparable) Compare(to random.Comparable) bool

Compare provides a mock function with given fields: to

func (*Comparable) EXPECT added in v1.15.1

func (_m *Comparable) EXPECT() *Comparable_Expecter

type Comparable_Compare_Call added in v1.15.1

type Comparable_Compare_Call struct {
	*mock.Call
}

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

func (*Comparable_Compare_Call) Return added in v1.15.1

func (*Comparable_Compare_Call) Run added in v1.15.1

func (*Comparable_Compare_Call) RunAndReturn added in v1.15.1

type Comparable_Expecter added in v1.15.1

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

func (*Comparable_Expecter) Compare added in v1.15.1

func (_e *Comparable_Expecter) Compare(to interface{}) *Comparable_Compare_Call

Compare is a helper method to define mock.On call

  • to random.Comparable

type WeightedRandomList

type WeightedRandomList struct {
	mock.Mock
}

WeightedRandomList is an autogenerated mock type for the WeightedRandomList type

func NewWeightedRandomList added in v1.15.1

func NewWeightedRandomList(t interface {
	mock.TestingT
	Cleanup(func())
}) *WeightedRandomList

NewWeightedRandomList creates a new instance of WeightedRandomList. 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 (*WeightedRandomList) EXPECT added in v1.15.1

func (*WeightedRandomList) Get

Get provides a mock function with no fields

func (*WeightedRandomList) GetWithSeed

func (_m *WeightedRandomList) GetWithSeed(seed rand.Source) (random.Comparable, error)

GetWithSeed provides a mock function with given fields: seed

func (*WeightedRandomList) Len

func (_m *WeightedRandomList) Len() int

Len provides a mock function with no fields

func (*WeightedRandomList) List

func (_m *WeightedRandomList) List() []random.Comparable

List provides a mock function with no fields

type WeightedRandomList_Expecter added in v1.15.1

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

func (*WeightedRandomList_Expecter) Get added in v1.15.1

Get is a helper method to define mock.On call

func (*WeightedRandomList_Expecter) GetWithSeed added in v1.15.1

func (_e *WeightedRandomList_Expecter) GetWithSeed(seed interface{}) *WeightedRandomList_GetWithSeed_Call

GetWithSeed is a helper method to define mock.On call

  • seed rand.Source

func (*WeightedRandomList_Expecter) Len added in v1.15.1

Len is a helper method to define mock.On call

func (*WeightedRandomList_Expecter) List added in v1.15.1

List is a helper method to define mock.On call

type WeightedRandomList_GetWithSeed_Call added in v1.15.1

type WeightedRandomList_GetWithSeed_Call struct {
	*mock.Call
}

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

func (*WeightedRandomList_GetWithSeed_Call) Return added in v1.15.1

func (*WeightedRandomList_GetWithSeed_Call) Run added in v1.15.1

func (*WeightedRandomList_GetWithSeed_Call) RunAndReturn added in v1.15.1

type WeightedRandomList_Get_Call added in v1.15.1

type WeightedRandomList_Get_Call struct {
	*mock.Call
}

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

func (*WeightedRandomList_Get_Call) Return added in v1.15.1

func (*WeightedRandomList_Get_Call) Run added in v1.15.1

func (*WeightedRandomList_Get_Call) RunAndReturn added in v1.15.1

type WeightedRandomList_Len_Call added in v1.15.1

type WeightedRandomList_Len_Call struct {
	*mock.Call
}

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

func (*WeightedRandomList_Len_Call) Return added in v1.15.1

func (*WeightedRandomList_Len_Call) Run added in v1.15.1

func (*WeightedRandomList_Len_Call) RunAndReturn added in v1.15.1

func (_c *WeightedRandomList_Len_Call) RunAndReturn(run func() int) *WeightedRandomList_Len_Call

type WeightedRandomList_List_Call added in v1.15.1

type WeightedRandomList_List_Call struct {
	*mock.Call
}

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

func (*WeightedRandomList_List_Call) Return added in v1.15.1

func (*WeightedRandomList_List_Call) Run added in v1.15.1

func (*WeightedRandomList_List_Call) RunAndReturn added in v1.15.1

Jump to

Keyboard shortcuts

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