Documentation ¶
Index ¶
- type Comparable
- type Comparable_Compare
- type WeightedRandomList
- 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
- func (_m *WeightedRandomList) OnGet() *WeightedRandomList_Get
- func (_m *WeightedRandomList) OnGetMatch(matchers ...interface{}) *WeightedRandomList_Get
- func (_m *WeightedRandomList) OnGetWithSeed(seed rand.Source) *WeightedRandomList_GetWithSeed
- func (_m *WeightedRandomList) OnGetWithSeedMatch(matchers ...interface{}) *WeightedRandomList_GetWithSeed
- func (_m *WeightedRandomList) OnLen() *WeightedRandomList_Len
- func (_m *WeightedRandomList) OnLenMatch(matchers ...interface{}) *WeightedRandomList_Len
- func (_m *WeightedRandomList) OnList() *WeightedRandomList_List
- func (_m *WeightedRandomList) OnListMatch(matchers ...interface{}) *WeightedRandomList_List
- type WeightedRandomList_Get
- type WeightedRandomList_GetWithSeed
- type WeightedRandomList_Len
- type WeightedRandomList_List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparable ¶ added in v0.2.22
Comparable is an autogenerated mock type for the Comparable type
func (*Comparable) Compare ¶ added in v0.2.22
func (_m *Comparable) Compare(to random.Comparable) bool
Compare provides a mock function with given fields: to
func (*Comparable) OnCompare ¶ added in v0.2.22
func (_m *Comparable) OnCompare(to random.Comparable) *Comparable_Compare
func (*Comparable) OnCompareMatch ¶ added in v0.2.22
func (_m *Comparable) OnCompareMatch(matchers ...interface{}) *Comparable_Compare
type Comparable_Compare ¶ added in v0.2.22
func (Comparable_Compare) Return ¶ added in v0.2.22
func (_m Comparable_Compare) Return(_a0 bool) *Comparable_Compare
type WeightedRandomList ¶
WeightedRandomList is an autogenerated mock type for the WeightedRandomList type
func (*WeightedRandomList) Get ¶
func (_m *WeightedRandomList) Get() random.Comparable
Get provides a mock function with given 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 given fields:
func (*WeightedRandomList) List ¶
func (_m *WeightedRandomList) List() []random.Comparable
List provides a mock function with given fields:
func (*WeightedRandomList) OnGet ¶ added in v0.2.22
func (_m *WeightedRandomList) OnGet() *WeightedRandomList_Get
func (*WeightedRandomList) OnGetMatch ¶ added in v0.2.22
func (_m *WeightedRandomList) OnGetMatch(matchers ...interface{}) *WeightedRandomList_Get
func (*WeightedRandomList) OnGetWithSeed ¶ added in v0.2.22
func (_m *WeightedRandomList) OnGetWithSeed(seed rand.Source) *WeightedRandomList_GetWithSeed
func (*WeightedRandomList) OnGetWithSeedMatch ¶ added in v0.2.22
func (_m *WeightedRandomList) OnGetWithSeedMatch(matchers ...interface{}) *WeightedRandomList_GetWithSeed
func (*WeightedRandomList) OnLen ¶ added in v0.2.22
func (_m *WeightedRandomList) OnLen() *WeightedRandomList_Len
func (*WeightedRandomList) OnLenMatch ¶ added in v0.2.22
func (_m *WeightedRandomList) OnLenMatch(matchers ...interface{}) *WeightedRandomList_Len
func (*WeightedRandomList) OnList ¶ added in v0.2.22
func (_m *WeightedRandomList) OnList() *WeightedRandomList_List
func (*WeightedRandomList) OnListMatch ¶ added in v0.2.22
func (_m *WeightedRandomList) OnListMatch(matchers ...interface{}) *WeightedRandomList_List
type WeightedRandomList_Get ¶ added in v0.2.22
func (WeightedRandomList_Get) Return ¶ added in v0.2.22
func (_m WeightedRandomList_Get) Return(_a0 random.Comparable) *WeightedRandomList_Get
type WeightedRandomList_GetWithSeed ¶ added in v0.2.22
func (WeightedRandomList_GetWithSeed) Return ¶ added in v0.2.22
func (_m WeightedRandomList_GetWithSeed) Return(_a0 random.Comparable, _a1 error) *WeightedRandomList_GetWithSeed
type WeightedRandomList_Len ¶ added in v0.2.22
func (WeightedRandomList_Len) Return ¶ added in v0.2.22
func (_m WeightedRandomList_Len) Return(_a0 int) *WeightedRandomList_Len
type WeightedRandomList_List ¶ added in v0.2.22
func (WeightedRandomList_List) Return ¶ added in v0.2.22
func (_m WeightedRandomList_List) Return(_a0 []random.Comparable) *WeightedRandomList_List
Click to show internal directories.
Click to hide internal directories.