Documentation
¶
Index ¶
- type Comparable
- type Comparable_Compare_Call
- type Comparable_Expecter
- type WeightedRandomList
- func (_m *WeightedRandomList) EXPECT() *WeightedRandomList_Expecter
- func (_m *WeightedRandomList) Get() random.Comparable
- func (_m *WeightedRandomList) GetWithSeed(seed rand.Source) (random.Comparable, error)
- func (_m *WeightedRandomList) Len() int
- func (_m *WeightedRandomList) List() []random.Comparable
- type WeightedRandomList_Expecter
- func (_e *WeightedRandomList_Expecter) Get() *WeightedRandomList_Get_Call
- func (_e *WeightedRandomList_Expecter) GetWithSeed(seed interface{}) *WeightedRandomList_GetWithSeed_Call
- func (_e *WeightedRandomList_Expecter) Len() *WeightedRandomList_Len_Call
- func (_e *WeightedRandomList_Expecter) List() *WeightedRandomList_List_Call
- type WeightedRandomList_GetWithSeed_Call
- func (_c *WeightedRandomList_GetWithSeed_Call) Return(_a0 random.Comparable, _a1 error) *WeightedRandomList_GetWithSeed_Call
- func (_c *WeightedRandomList_GetWithSeed_Call) Run(run func(seed rand.Source)) *WeightedRandomList_GetWithSeed_Call
- func (_c *WeightedRandomList_GetWithSeed_Call) RunAndReturn(run func(rand.Source) (random.Comparable, error)) *WeightedRandomList_GetWithSeed_Call
- type WeightedRandomList_Get_Call
- type WeightedRandomList_Len_Call
- type WeightedRandomList_List_Call
- func (_c *WeightedRandomList_List_Call) Return(_a0 []random.Comparable) *WeightedRandomList_List_Call
- func (_c *WeightedRandomList_List_Call) Run(run func()) *WeightedRandomList_List_Call
- func (_c *WeightedRandomList_List_Call) RunAndReturn(run func() []random.Comparable) *WeightedRandomList_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
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
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 (_c *Comparable_Compare_Call) Return(_a0 bool) *Comparable_Compare_Call
func (*Comparable_Compare_Call) Run ¶ added in v1.15.1
func (_c *Comparable_Compare_Call) Run(run func(to random.Comparable)) *Comparable_Compare_Call
func (*Comparable_Compare_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Comparable_Compare_Call) RunAndReturn(run func(random.Comparable) bool) *Comparable_Compare_Call
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 ¶
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 (_m *WeightedRandomList) EXPECT() *WeightedRandomList_Expecter
func (*WeightedRandomList) Get ¶
func (_m *WeightedRandomList) Get() random.Comparable
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
func (_e *WeightedRandomList_Expecter) Get() *WeightedRandomList_Get_Call
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
func (_e *WeightedRandomList_Expecter) Len() *WeightedRandomList_Len_Call
Len is a helper method to define mock.On call
func (*WeightedRandomList_Expecter) List ¶ added in v1.15.1
func (_e *WeightedRandomList_Expecter) List() *WeightedRandomList_List_Call
List is a helper method to define mock.On call
type WeightedRandomList_GetWithSeed_Call ¶ added in v1.15.1
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 (_c *WeightedRandomList_GetWithSeed_Call) Return(_a0 random.Comparable, _a1 error) *WeightedRandomList_GetWithSeed_Call
func (*WeightedRandomList_GetWithSeed_Call) Run ¶ added in v1.15.1
func (_c *WeightedRandomList_GetWithSeed_Call) Run(run func(seed rand.Source)) *WeightedRandomList_GetWithSeed_Call
func (*WeightedRandomList_GetWithSeed_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WeightedRandomList_GetWithSeed_Call) RunAndReturn(run func(rand.Source) (random.Comparable, error)) *WeightedRandomList_GetWithSeed_Call
type WeightedRandomList_Get_Call ¶ added in v1.15.1
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 (_c *WeightedRandomList_Get_Call) Return(_a0 random.Comparable) *WeightedRandomList_Get_Call
func (*WeightedRandomList_Get_Call) Run ¶ added in v1.15.1
func (_c *WeightedRandomList_Get_Call) Run(run func()) *WeightedRandomList_Get_Call
func (*WeightedRandomList_Get_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WeightedRandomList_Get_Call) RunAndReturn(run func() random.Comparable) *WeightedRandomList_Get_Call
type WeightedRandomList_Len_Call ¶ added in v1.15.1
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 (_c *WeightedRandomList_Len_Call) Return(_a0 int) *WeightedRandomList_Len_Call
func (*WeightedRandomList_Len_Call) Run ¶ added in v1.15.1
func (_c *WeightedRandomList_Len_Call) Run(run func()) *WeightedRandomList_Len_Call
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
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 (_c *WeightedRandomList_List_Call) Return(_a0 []random.Comparable) *WeightedRandomList_List_Call
func (*WeightedRandomList_List_Call) Run ¶ added in v1.15.1
func (_c *WeightedRandomList_List_Call) Run(run func()) *WeightedRandomList_List_Call
func (*WeightedRandomList_List_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WeightedRandomList_List_Call) RunAndReturn(run func() []random.Comparable) *WeightedRandomList_List_Call