Documentation
¶
Index ¶
- func DefaultIterCb[K Stringer, V any](key K, v V)
- func DefaultRemoveCb[K Stringer, V any](key K, v V, exists bool) bool
- func DefaultUpsertCb[K Stringer, V any](exist bool, valueInMap V, newValue V) V
- type ConcurrentMapInterface
- type ConcurrentMapOption
- type ConcurrentMapSlotted
- type Integer
- type Integer32
- type IterCb
- type MockConcurrentMapInterface
- func (_mock *MockConcurrentMapInterface[K, V]) Clear()
- func (_mock *MockConcurrentMapInterface[K, V]) Count() int
- func (_m *MockConcurrentMapInterface[K, V]) EXPECT() *MockConcurrentMapInterface_Expecter[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) Get(key K) (V, bool)
- func (_mock *MockConcurrentMapInterface[K, V]) GetSlot(key K) *ConcurrentMapSlotted[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) GetSlotNum() int
- func (_mock *MockConcurrentMapInterface[K, V]) GetSlotkeyNum(idx int) int
- func (_mock *MockConcurrentMapInterface[K, V]) GetSlots(idx int) *ConcurrentMapSlotted[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) Has(key K) bool
- func (_mock *MockConcurrentMapInterface[K, V]) IsEmpty() bool
- func (_mock *MockConcurrentMapInterface[K, V]) Items() map[K]V
- func (_mock *MockConcurrentMapInterface[K, V]) Iter() <-chan Tuple[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) IterCb(key K, v V, cb IterCb[K, V])
- func (_mock *MockConcurrentMapInterface[K, V]) Keys() []K
- func (_mock *MockConcurrentMapInterface[K, V]) ListSlots() []*ConcurrentMapSlotted[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) MSet(data map[K]V)
- func (_mock *MockConcurrentMapInterface[K, V]) MarshalJSON() ([]byte, error)
- func (_mock *MockConcurrentMapInterface[K, V]) Pop(key K) (V, bool)
- func (_mock *MockConcurrentMapInterface[K, V]) Remove(key K)
- func (_mock *MockConcurrentMapInterface[K, V]) RemoveCb(key K, cb RemoveCb[K, V]) bool
- func (_mock *MockConcurrentMapInterface[K, V]) Set(key K, value V)
- func (_mock *MockConcurrentMapInterface[K, V]) SetIfAbsent(key K, value V) bool
- func (_mock *MockConcurrentMapInterface[K, V]) Tuples() []Tuple[K, V]
- func (_mock *MockConcurrentMapInterface[K, V]) UnmarshalJSON(b []byte) error
- func (_mock *MockConcurrentMapInterface[K, V]) Upsert(key K, value V, cb UpsertCb[K, V]) V
- type MockConcurrentMapInterface_Clear_Call
- func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) Return() *MockConcurrentMapInterface_Clear_Call[K, V]
- func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Clear_Call[K, V]
- func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) RunAndReturn(run func()) *MockConcurrentMapInterface_Clear_Call[K, V]
- type MockConcurrentMapInterface_Count_Call
- func (_c *MockConcurrentMapInterface_Count_Call[K, V]) Return(n int) *MockConcurrentMapInterface_Count_Call[K, V]
- func (_c *MockConcurrentMapInterface_Count_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Count_Call[K, V]
- func (_c *MockConcurrentMapInterface_Count_Call[K, V]) RunAndReturn(run func() int) *MockConcurrentMapInterface_Count_Call[K, V]
- type MockConcurrentMapInterface_Expecter
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Clear() *MockConcurrentMapInterface_Clear_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Count() *MockConcurrentMapInterface_Count_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Get(key interface{}) *MockConcurrentMapInterface_Get_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlot(key interface{}) *MockConcurrentMapInterface_GetSlot_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlotNum() *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlotkeyNum(idx interface{}) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlots(idx interface{}) *MockConcurrentMapInterface_GetSlots_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Has(key interface{}) *MockConcurrentMapInterface_Has_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) IsEmpty() *MockConcurrentMapInterface_IsEmpty_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Items() *MockConcurrentMapInterface_Items_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Iter() *MockConcurrentMapInterface_Iter_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) IterCb(key interface{}, v interface{}, cb interface{}) *MockConcurrentMapInterface_IterCb_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Keys() *MockConcurrentMapInterface_Keys_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) ListSlots() *MockConcurrentMapInterface_ListSlots_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) MSet(data interface{}) *MockConcurrentMapInterface_MSet_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) MarshalJSON() *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Pop(key interface{}) *MockConcurrentMapInterface_Pop_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Remove(key interface{}) *MockConcurrentMapInterface_Remove_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) RemoveCb(key interface{}, cb interface{}) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Set(key interface{}, value interface{}) *MockConcurrentMapInterface_Set_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) SetIfAbsent(key interface{}, value interface{}) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Tuples() *MockConcurrentMapInterface_Tuples_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) UnmarshalJSON(b interface{}) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
- func (_e *MockConcurrentMapInterface_Expecter[K, V]) Upsert(key interface{}, value interface{}, cb interface{}) *MockConcurrentMapInterface_Upsert_Call[K, V]
- type MockConcurrentMapInterface_GetSlotNum_Call
- func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Return(n int) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) RunAndReturn(run func() int) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
- type MockConcurrentMapInterface_GetSlot_Call
- func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) Return(concurrentMapSlotted *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlot_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_GetSlot_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) RunAndReturn(run func(key K) *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlot_Call[K, V]
- type MockConcurrentMapInterface_GetSlotkeyNum_Call
- func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Return(n int) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Run(run func(idx int)) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) RunAndReturn(run func(idx int) int) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
- type MockConcurrentMapInterface_GetSlots_Call
- func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) Return(concurrentMapSlotted *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlots_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) Run(run func(idx int)) *MockConcurrentMapInterface_GetSlots_Call[K, V]
- func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) RunAndReturn(run func(idx int) *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlots_Call[K, V]
- type MockConcurrentMapInterface_Get_Call
- func (_c *MockConcurrentMapInterface_Get_Call[K, V]) Return(v V, b bool) *MockConcurrentMapInterface_Get_Call[K, V]
- func (_c *MockConcurrentMapInterface_Get_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Get_Call[K, V]
- func (_c *MockConcurrentMapInterface_Get_Call[K, V]) RunAndReturn(run func(key K) (V, bool)) *MockConcurrentMapInterface_Get_Call[K, V]
- type MockConcurrentMapInterface_Has_Call
- func (_c *MockConcurrentMapInterface_Has_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_Has_Call[K, V]
- func (_c *MockConcurrentMapInterface_Has_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Has_Call[K, V]
- func (_c *MockConcurrentMapInterface_Has_Call[K, V]) RunAndReturn(run func(key K) bool) *MockConcurrentMapInterface_Has_Call[K, V]
- type MockConcurrentMapInterface_IsEmpty_Call
- func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
- func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
- func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) RunAndReturn(run func() bool) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
- type MockConcurrentMapInterface_Items_Call
- func (_c *MockConcurrentMapInterface_Items_Call[K, V]) Return(vToV map[K]V) *MockConcurrentMapInterface_Items_Call[K, V]
- func (_c *MockConcurrentMapInterface_Items_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Items_Call[K, V]
- func (_c *MockConcurrentMapInterface_Items_Call[K, V]) RunAndReturn(run func() map[K]V) *MockConcurrentMapInterface_Items_Call[K, V]
- type MockConcurrentMapInterface_IterCb_Call
- func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) Return() *MockConcurrentMapInterface_IterCb_Call[K, V]
- func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) Run(run func(key K, v V, cb IterCb[K, V])) *MockConcurrentMapInterface_IterCb_Call[K, V]
- func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) RunAndReturn(run func(key K, v V, cb IterCb[K, V])) *MockConcurrentMapInterface_IterCb_Call[K, V]
- type MockConcurrentMapInterface_Iter_Call
- func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) Return(tupleCh <-chan Tuple[K, V]) *MockConcurrentMapInterface_Iter_Call[K, V]
- func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Iter_Call[K, V]
- func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) RunAndReturn(run func() <-chan Tuple[K, V]) *MockConcurrentMapInterface_Iter_Call[K, V]
- type MockConcurrentMapInterface_Keys_Call
- func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) Return(vs []K) *MockConcurrentMapInterface_Keys_Call[K, V]
- func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Keys_Call[K, V]
- func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) RunAndReturn(run func() []K) *MockConcurrentMapInterface_Keys_Call[K, V]
- type MockConcurrentMapInterface_ListSlots_Call
- func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) Return(concurrentMapSlotteds []*ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_ListSlots_Call[K, V]
- func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_ListSlots_Call[K, V]
- func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) RunAndReturn(run func() []*ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_ListSlots_Call[K, V]
- type MockConcurrentMapInterface_MSet_Call
- func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) Return() *MockConcurrentMapInterface_MSet_Call[K, V]
- func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) Run(run func(data map[K]V)) *MockConcurrentMapInterface_MSet_Call[K, V]
- func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) RunAndReturn(run func(data map[K]V)) *MockConcurrentMapInterface_MSet_Call[K, V]
- type MockConcurrentMapInterface_MarshalJSON_Call
- func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Return(bytes []byte, err error) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
- func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
- func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) RunAndReturn(run func() ([]byte, error)) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
- type MockConcurrentMapInterface_Pop_Call
- func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) Return(v V, ok bool) *MockConcurrentMapInterface_Pop_Call[K, V]
- func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Pop_Call[K, V]
- func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) RunAndReturn(run func(key K) (V, bool)) *MockConcurrentMapInterface_Pop_Call[K, V]
- type MockConcurrentMapInterface_RemoveCb_Call
- func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
- func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) Run(run func(key K, cb RemoveCb[K, V])) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
- func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) RunAndReturn(run func(key K, cb RemoveCb[K, V]) bool) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
- type MockConcurrentMapInterface_Remove_Call
- func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) Return() *MockConcurrentMapInterface_Remove_Call[K, V]
- func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Remove_Call[K, V]
- func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) RunAndReturn(run func(key K)) *MockConcurrentMapInterface_Remove_Call[K, V]
- type MockConcurrentMapInterface_SetIfAbsent_Call
- func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
- func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Run(run func(key K, value V)) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
- func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) RunAndReturn(run func(key K, value V) bool) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
- type MockConcurrentMapInterface_Set_Call
- func (_c *MockConcurrentMapInterface_Set_Call[K, V]) Return() *MockConcurrentMapInterface_Set_Call[K, V]
- func (_c *MockConcurrentMapInterface_Set_Call[K, V]) Run(run func(key K, value V)) *MockConcurrentMapInterface_Set_Call[K, V]
- func (_c *MockConcurrentMapInterface_Set_Call[K, V]) RunAndReturn(run func(key K, value V)) *MockConcurrentMapInterface_Set_Call[K, V]
- type MockConcurrentMapInterface_Tuples_Call
- func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) Return(tuples []Tuple[K, V]) *MockConcurrentMapInterface_Tuples_Call[K, V]
- func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Tuples_Call[K, V]
- func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) RunAndReturn(run func() []Tuple[K, V]) *MockConcurrentMapInterface_Tuples_Call[K, V]
- type MockConcurrentMapInterface_UnmarshalJSON_Call
- func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Return(err error) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
- func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Run(run func(b []byte)) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
- func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) RunAndReturn(run func(b []byte) error) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
- type MockConcurrentMapInterface_Upsert_Call
- func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) Return(v V) *MockConcurrentMapInterface_Upsert_Call[K, V]
- func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) Run(run func(key K, value V, cb UpsertCb[K, V])) *MockConcurrentMapInterface_Upsert_Call[K, V]
- func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) RunAndReturn(run func(key K, value V, cb UpsertCb[K, V]) V) *MockConcurrentMapInterface_Upsert_Call[K, V]
- type MockStringer
- type MockStringer_Expecter
- type MockStringer_String_Call
- type RemoveCb
- type SlotingFunc
- type String
- type Stringer
- type Tuple
- type UpsertCb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIterCb ¶
DefaultIterCb is the default iterator callback function.
func DefaultRemoveCb ¶
DefaultRemoveCb is the default remove callback function.
func DefaultUpsertCb ¶
DefaultUpsertCb is the default upsert callback function.
Types ¶
type ConcurrentMapInterface ¶
type ConcurrentMapInterface[K Stringer, V any] interface { Count() int GetSlotNum() int IsEmpty() bool GetSlot(key K) *ConcurrentMapSlotted[K, V] Set(key K, value V) SetIfAbsent(key K, value V) bool MSet(data map[K]V) Upsert(key K, value V, cb UpsertCb[K, V]) V Get(key K) (V, bool) Pop(key K) (v V, ok bool) Has(key K) bool Remove(key K) RemoveCb(key K, cb RemoveCb[K, V]) bool Iter() <-chan Tuple[K, V] IterCb(key K, v V, cb IterCb[K, V]) Items() map[K]V Keys() []K Tuples() []Tuple[K, V] Clear() UnmarshalJSON(b []byte) error MarshalJSON() ([]byte, error) }
ConcurrentMapInterface is the interface of ConcurrentMap
func New ¶
func New[K Stringer, V any](opts ...ConcurrentMapOption[K, V]) ConcurrentMapInterface[K, V]
New create a new ConcurrentMap
type ConcurrentMapOption ¶
func WithConcurrentMapSlotNum ¶
func WithConcurrentMapSlotNum[K Stringer, V any](slotNum int) ConcurrentMapOption[K, V]
WithConcurrentMapSlotNum is a concurrent map option that sets the slot number.
func WithConcurrentMapSloting ¶
func WithConcurrentMapSloting[K Stringer, V any](sloting func(key K) uint32) ConcurrentMapOption[K, V]
WithConcurrentMapSloting is a concurrent map option that sets the sloting function.
type ConcurrentMapSlotted ¶
type ConcurrentMapSlotted[K Stringer, V any] struct { sync.RWMutex // contains filtered or unexported fields }
ConcurrentMapSlotted The key/value pairs stored in the slots of a concurrent map
type MockConcurrentMapInterface ¶
MockConcurrentMapInterface is an autogenerated mock type for the ConcurrentMapInterface type
func NewMockConcurrentMapInterface ¶
func NewMockConcurrentMapInterface[K Stringer, V any](t interface { mock.TestingT Cleanup(func()) }) *MockConcurrentMapInterface[K, V]
NewMockConcurrentMapInterface creates a new instance of MockConcurrentMapInterface. 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 (*MockConcurrentMapInterface[K, V]) Clear ¶
func (_mock *MockConcurrentMapInterface[K, V]) Clear()
Clear provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Count ¶
func (_mock *MockConcurrentMapInterface[K, V]) Count() int
Count provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) EXPECT ¶
func (_m *MockConcurrentMapInterface[K, V]) EXPECT() *MockConcurrentMapInterface_Expecter[K, V]
func (*MockConcurrentMapInterface[K, V]) Get ¶
func (_mock *MockConcurrentMapInterface[K, V]) Get(key K) (V, bool)
Get provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) GetSlot ¶
func (_mock *MockConcurrentMapInterface[K, V]) GetSlot(key K) *ConcurrentMapSlotted[K, V]
GetSlot provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) GetSlotNum ¶
func (_mock *MockConcurrentMapInterface[K, V]) GetSlotNum() int
GetSlotNum provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) GetSlotkeyNum ¶
func (_mock *MockConcurrentMapInterface[K, V]) GetSlotkeyNum(idx int) int
GetSlotkeyNum provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) GetSlots ¶
func (_mock *MockConcurrentMapInterface[K, V]) GetSlots(idx int) *ConcurrentMapSlotted[K, V]
GetSlots provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Has ¶
func (_mock *MockConcurrentMapInterface[K, V]) Has(key K) bool
Has provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) IsEmpty ¶
func (_mock *MockConcurrentMapInterface[K, V]) IsEmpty() bool
IsEmpty provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Items ¶
func (_mock *MockConcurrentMapInterface[K, V]) Items() map[K]V
Items provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Iter ¶
func (_mock *MockConcurrentMapInterface[K, V]) Iter() <-chan Tuple[K, V]
Iter provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) IterCb ¶
func (_mock *MockConcurrentMapInterface[K, V]) IterCb(key K, v V, cb IterCb[K, V])
IterCb provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Keys ¶
func (_mock *MockConcurrentMapInterface[K, V]) Keys() []K
Keys provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) ListSlots ¶
func (_mock *MockConcurrentMapInterface[K, V]) ListSlots() []*ConcurrentMapSlotted[K, V]
ListSlots provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) MSet ¶
func (_mock *MockConcurrentMapInterface[K, V]) MSet(data map[K]V)
MSet provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) MarshalJSON ¶
func (_mock *MockConcurrentMapInterface[K, V]) MarshalJSON() ([]byte, error)
MarshalJSON provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Pop ¶
func (_mock *MockConcurrentMapInterface[K, V]) Pop(key K) (V, bool)
Pop provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Remove ¶
func (_mock *MockConcurrentMapInterface[K, V]) Remove(key K)
Remove provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) RemoveCb ¶
func (_mock *MockConcurrentMapInterface[K, V]) RemoveCb(key K, cb RemoveCb[K, V]) bool
RemoveCb provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Set ¶
func (_mock *MockConcurrentMapInterface[K, V]) Set(key K, value V)
Set provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) SetIfAbsent ¶
func (_mock *MockConcurrentMapInterface[K, V]) SetIfAbsent(key K, value V) bool
SetIfAbsent provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Tuples ¶
func (_mock *MockConcurrentMapInterface[K, V]) Tuples() []Tuple[K, V]
Tuples provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) UnmarshalJSON ¶
func (_mock *MockConcurrentMapInterface[K, V]) UnmarshalJSON(b []byte) error
UnmarshalJSON provides a mock function for the type MockConcurrentMapInterface
func (*MockConcurrentMapInterface[K, V]) Upsert ¶
func (_mock *MockConcurrentMapInterface[K, V]) Upsert(key K, value V, cb UpsertCb[K, V]) V
Upsert provides a mock function for the type MockConcurrentMapInterface
type MockConcurrentMapInterface_Clear_Call ¶
MockConcurrentMapInterface_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*MockConcurrentMapInterface_Clear_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) Return() *MockConcurrentMapInterface_Clear_Call[K, V]
func (*MockConcurrentMapInterface_Clear_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Clear_Call[K, V]
func (*MockConcurrentMapInterface_Clear_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Clear_Call[K, V]) RunAndReturn(run func()) *MockConcurrentMapInterface_Clear_Call[K, V]
type MockConcurrentMapInterface_Count_Call ¶
MockConcurrentMapInterface_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*MockConcurrentMapInterface_Count_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Count_Call[K, V]) Return(n int) *MockConcurrentMapInterface_Count_Call[K, V]
func (*MockConcurrentMapInterface_Count_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Count_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Count_Call[K, V]
func (*MockConcurrentMapInterface_Count_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Count_Call[K, V]) RunAndReturn(run func() int) *MockConcurrentMapInterface_Count_Call[K, V]
type MockConcurrentMapInterface_Expecter ¶
type MockConcurrentMapInterface_Expecter[K Stringer, V any] struct { // contains filtered or unexported fields }
func (*MockConcurrentMapInterface_Expecter[K, V]) Clear ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Clear() *MockConcurrentMapInterface_Clear_Call[K, V]
Clear is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) Count ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Count() *MockConcurrentMapInterface_Count_Call[K, V]
Count is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) Get ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Get(key interface{}) *MockConcurrentMapInterface_Get_Call[K, V]
Get is a helper method to define mock.On call
- key K
func (*MockConcurrentMapInterface_Expecter[K, V]) GetSlot ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlot(key interface{}) *MockConcurrentMapInterface_GetSlot_Call[K, V]
GetSlot is a helper method to define mock.On call
- key K
func (*MockConcurrentMapInterface_Expecter[K, V]) GetSlotNum ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlotNum() *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
GetSlotNum is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) GetSlotkeyNum ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlotkeyNum(idx interface{}) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
GetSlotkeyNum is a helper method to define mock.On call
- idx int
func (*MockConcurrentMapInterface_Expecter[K, V]) GetSlots ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) GetSlots(idx interface{}) *MockConcurrentMapInterface_GetSlots_Call[K, V]
GetSlots is a helper method to define mock.On call
- idx int
func (*MockConcurrentMapInterface_Expecter[K, V]) Has ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Has(key interface{}) *MockConcurrentMapInterface_Has_Call[K, V]
Has is a helper method to define mock.On call
- key K
func (*MockConcurrentMapInterface_Expecter[K, V]) IsEmpty ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) IsEmpty() *MockConcurrentMapInterface_IsEmpty_Call[K, V]
IsEmpty is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) Items ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Items() *MockConcurrentMapInterface_Items_Call[K, V]
Items is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) Iter ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Iter() *MockConcurrentMapInterface_Iter_Call[K, V]
Iter is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) IterCb ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) IterCb(key interface{}, v interface{}, cb interface{}) *MockConcurrentMapInterface_IterCb_Call[K, V]
IterCb is a helper method to define mock.On call
- key K
- v V
- cb IterCb[K, V]
func (*MockConcurrentMapInterface_Expecter[K, V]) Keys ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Keys() *MockConcurrentMapInterface_Keys_Call[K, V]
Keys is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) ListSlots ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) ListSlots() *MockConcurrentMapInterface_ListSlots_Call[K, V]
ListSlots is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) MSet ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) MSet(data interface{}) *MockConcurrentMapInterface_MSet_Call[K, V]
MSet is a helper method to define mock.On call
- data map[K]V
func (*MockConcurrentMapInterface_Expecter[K, V]) MarshalJSON ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) MarshalJSON() *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
MarshalJSON is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) Pop ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Pop(key interface{}) *MockConcurrentMapInterface_Pop_Call[K, V]
Pop is a helper method to define mock.On call
- key K
func (*MockConcurrentMapInterface_Expecter[K, V]) Remove ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Remove(key interface{}) *MockConcurrentMapInterface_Remove_Call[K, V]
Remove is a helper method to define mock.On call
- key K
func (*MockConcurrentMapInterface_Expecter[K, V]) RemoveCb ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) RemoveCb(key interface{}, cb interface{}) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
RemoveCb is a helper method to define mock.On call
- key K
- cb RemoveCb[K, V]
func (*MockConcurrentMapInterface_Expecter[K, V]) Set ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Set(key interface{}, value interface{}) *MockConcurrentMapInterface_Set_Call[K, V]
Set is a helper method to define mock.On call
- key K
- value V
func (*MockConcurrentMapInterface_Expecter[K, V]) SetIfAbsent ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) SetIfAbsent(key interface{}, value interface{}) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
SetIfAbsent is a helper method to define mock.On call
- key K
- value V
func (*MockConcurrentMapInterface_Expecter[K, V]) Tuples ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Tuples() *MockConcurrentMapInterface_Tuples_Call[K, V]
Tuples is a helper method to define mock.On call
func (*MockConcurrentMapInterface_Expecter[K, V]) UnmarshalJSON ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) UnmarshalJSON(b interface{}) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
UnmarshalJSON is a helper method to define mock.On call
- b []byte
func (*MockConcurrentMapInterface_Expecter[K, V]) Upsert ¶
func (_e *MockConcurrentMapInterface_Expecter[K, V]) Upsert(key interface{}, value interface{}, cb interface{}) *MockConcurrentMapInterface_Upsert_Call[K, V]
Upsert is a helper method to define mock.On call
- key K
- value V
- cb UpsertCb[K, V]
type MockConcurrentMapInterface_GetSlotNum_Call ¶
MockConcurrentMapInterface_GetSlotNum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlotNum'
func (*MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Return(n int) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
func (*MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
func (*MockConcurrentMapInterface_GetSlotNum_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_GetSlotNum_Call[K, V]) RunAndReturn(run func() int) *MockConcurrentMapInterface_GetSlotNum_Call[K, V]
type MockConcurrentMapInterface_GetSlot_Call ¶
MockConcurrentMapInterface_GetSlot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlot'
func (*MockConcurrentMapInterface_GetSlot_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) Return(concurrentMapSlotted *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlot_Call[K, V]
func (*MockConcurrentMapInterface_GetSlot_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_GetSlot_Call[K, V]
func (*MockConcurrentMapInterface_GetSlot_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_GetSlot_Call[K, V]) RunAndReturn(run func(key K) *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlot_Call[K, V]
type MockConcurrentMapInterface_GetSlotkeyNum_Call ¶
MockConcurrentMapInterface_GetSlotkeyNum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlotkeyNum'
func (*MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Return(n int) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
func (*MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) Run(run func(idx int)) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
func (*MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]) RunAndReturn(run func(idx int) int) *MockConcurrentMapInterface_GetSlotkeyNum_Call[K, V]
type MockConcurrentMapInterface_GetSlots_Call ¶
MockConcurrentMapInterface_GetSlots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlots'
func (*MockConcurrentMapInterface_GetSlots_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) Return(concurrentMapSlotted *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlots_Call[K, V]
func (*MockConcurrentMapInterface_GetSlots_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) Run(run func(idx int)) *MockConcurrentMapInterface_GetSlots_Call[K, V]
func (*MockConcurrentMapInterface_GetSlots_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_GetSlots_Call[K, V]) RunAndReturn(run func(idx int) *ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_GetSlots_Call[K, V]
type MockConcurrentMapInterface_Get_Call ¶
MockConcurrentMapInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockConcurrentMapInterface_Get_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Get_Call[K, V]) Return(v V, b bool) *MockConcurrentMapInterface_Get_Call[K, V]
func (*MockConcurrentMapInterface_Get_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Get_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Get_Call[K, V]
func (*MockConcurrentMapInterface_Get_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Get_Call[K, V]) RunAndReturn(run func(key K) (V, bool)) *MockConcurrentMapInterface_Get_Call[K, V]
type MockConcurrentMapInterface_Has_Call ¶
MockConcurrentMapInterface_Has_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Has'
func (*MockConcurrentMapInterface_Has_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Has_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_Has_Call[K, V]
func (*MockConcurrentMapInterface_Has_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Has_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Has_Call[K, V]
func (*MockConcurrentMapInterface_Has_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Has_Call[K, V]) RunAndReturn(run func(key K) bool) *MockConcurrentMapInterface_Has_Call[K, V]
type MockConcurrentMapInterface_IsEmpty_Call ¶
MockConcurrentMapInterface_IsEmpty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsEmpty'
func (*MockConcurrentMapInterface_IsEmpty_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
func (*MockConcurrentMapInterface_IsEmpty_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
func (*MockConcurrentMapInterface_IsEmpty_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_IsEmpty_Call[K, V]) RunAndReturn(run func() bool) *MockConcurrentMapInterface_IsEmpty_Call[K, V]
type MockConcurrentMapInterface_Items_Call ¶
MockConcurrentMapInterface_Items_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Items'
func (*MockConcurrentMapInterface_Items_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Items_Call[K, V]) Return(vToV map[K]V) *MockConcurrentMapInterface_Items_Call[K, V]
func (*MockConcurrentMapInterface_Items_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Items_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Items_Call[K, V]
func (*MockConcurrentMapInterface_Items_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Items_Call[K, V]) RunAndReturn(run func() map[K]V) *MockConcurrentMapInterface_Items_Call[K, V]
type MockConcurrentMapInterface_IterCb_Call ¶
MockConcurrentMapInterface_IterCb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterCb'
func (*MockConcurrentMapInterface_IterCb_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) Return() *MockConcurrentMapInterface_IterCb_Call[K, V]
func (*MockConcurrentMapInterface_IterCb_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) Run(run func(key K, v V, cb IterCb[K, V])) *MockConcurrentMapInterface_IterCb_Call[K, V]
func (*MockConcurrentMapInterface_IterCb_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_IterCb_Call[K, V]) RunAndReturn(run func(key K, v V, cb IterCb[K, V])) *MockConcurrentMapInterface_IterCb_Call[K, V]
type MockConcurrentMapInterface_Iter_Call ¶
MockConcurrentMapInterface_Iter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Iter'
func (*MockConcurrentMapInterface_Iter_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) Return(tupleCh <-chan Tuple[K, V]) *MockConcurrentMapInterface_Iter_Call[K, V]
func (*MockConcurrentMapInterface_Iter_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Iter_Call[K, V]
func (*MockConcurrentMapInterface_Iter_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Iter_Call[K, V]) RunAndReturn(run func() <-chan Tuple[K, V]) *MockConcurrentMapInterface_Iter_Call[K, V]
type MockConcurrentMapInterface_Keys_Call ¶
MockConcurrentMapInterface_Keys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Keys'
func (*MockConcurrentMapInterface_Keys_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) Return(vs []K) *MockConcurrentMapInterface_Keys_Call[K, V]
func (*MockConcurrentMapInterface_Keys_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Keys_Call[K, V]
func (*MockConcurrentMapInterface_Keys_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Keys_Call[K, V]) RunAndReturn(run func() []K) *MockConcurrentMapInterface_Keys_Call[K, V]
type MockConcurrentMapInterface_ListSlots_Call ¶
MockConcurrentMapInterface_ListSlots_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSlots'
func (*MockConcurrentMapInterface_ListSlots_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) Return(concurrentMapSlotteds []*ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_ListSlots_Call[K, V]
func (*MockConcurrentMapInterface_ListSlots_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_ListSlots_Call[K, V]
func (*MockConcurrentMapInterface_ListSlots_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_ListSlots_Call[K, V]) RunAndReturn(run func() []*ConcurrentMapSlotted[K, V]) *MockConcurrentMapInterface_ListSlots_Call[K, V]
type MockConcurrentMapInterface_MSet_Call ¶
MockConcurrentMapInterface_MSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MSet'
func (*MockConcurrentMapInterface_MSet_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) Return() *MockConcurrentMapInterface_MSet_Call[K, V]
func (*MockConcurrentMapInterface_MSet_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) Run(run func(data map[K]V)) *MockConcurrentMapInterface_MSet_Call[K, V]
func (*MockConcurrentMapInterface_MSet_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_MSet_Call[K, V]) RunAndReturn(run func(data map[K]V)) *MockConcurrentMapInterface_MSet_Call[K, V]
type MockConcurrentMapInterface_MarshalJSON_Call ¶
MockConcurrentMapInterface_MarshalJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarshalJSON'
func (*MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Return(bytes []byte, err error) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
func (*MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
func (*MockConcurrentMapInterface_MarshalJSON_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_MarshalJSON_Call[K, V]) RunAndReturn(run func() ([]byte, error)) *MockConcurrentMapInterface_MarshalJSON_Call[K, V]
type MockConcurrentMapInterface_Pop_Call ¶
MockConcurrentMapInterface_Pop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pop'
func (*MockConcurrentMapInterface_Pop_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) Return(v V, ok bool) *MockConcurrentMapInterface_Pop_Call[K, V]
func (*MockConcurrentMapInterface_Pop_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Pop_Call[K, V]
func (*MockConcurrentMapInterface_Pop_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Pop_Call[K, V]) RunAndReturn(run func(key K) (V, bool)) *MockConcurrentMapInterface_Pop_Call[K, V]
type MockConcurrentMapInterface_RemoveCb_Call ¶
MockConcurrentMapInterface_RemoveCb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCb'
func (*MockConcurrentMapInterface_RemoveCb_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
func (*MockConcurrentMapInterface_RemoveCb_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) Run(run func(key K, cb RemoveCb[K, V])) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
func (*MockConcurrentMapInterface_RemoveCb_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_RemoveCb_Call[K, V]) RunAndReturn(run func(key K, cb RemoveCb[K, V]) bool) *MockConcurrentMapInterface_RemoveCb_Call[K, V]
type MockConcurrentMapInterface_Remove_Call ¶
MockConcurrentMapInterface_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MockConcurrentMapInterface_Remove_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) Return() *MockConcurrentMapInterface_Remove_Call[K, V]
func (*MockConcurrentMapInterface_Remove_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) Run(run func(key K)) *MockConcurrentMapInterface_Remove_Call[K, V]
func (*MockConcurrentMapInterface_Remove_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Remove_Call[K, V]) RunAndReturn(run func(key K)) *MockConcurrentMapInterface_Remove_Call[K, V]
type MockConcurrentMapInterface_SetIfAbsent_Call ¶
MockConcurrentMapInterface_SetIfAbsent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetIfAbsent'
func (*MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Return(b bool) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
func (*MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) Run(run func(key K, value V)) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
func (*MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]) RunAndReturn(run func(key K, value V) bool) *MockConcurrentMapInterface_SetIfAbsent_Call[K, V]
type MockConcurrentMapInterface_Set_Call ¶
MockConcurrentMapInterface_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockConcurrentMapInterface_Set_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Set_Call[K, V]) Return() *MockConcurrentMapInterface_Set_Call[K, V]
func (*MockConcurrentMapInterface_Set_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Set_Call[K, V]) Run(run func(key K, value V)) *MockConcurrentMapInterface_Set_Call[K, V]
func (*MockConcurrentMapInterface_Set_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Set_Call[K, V]) RunAndReturn(run func(key K, value V)) *MockConcurrentMapInterface_Set_Call[K, V]
type MockConcurrentMapInterface_Tuples_Call ¶
MockConcurrentMapInterface_Tuples_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tuples'
func (*MockConcurrentMapInterface_Tuples_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) Return(tuples []Tuple[K, V]) *MockConcurrentMapInterface_Tuples_Call[K, V]
func (*MockConcurrentMapInterface_Tuples_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) Run(run func()) *MockConcurrentMapInterface_Tuples_Call[K, V]
func (*MockConcurrentMapInterface_Tuples_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Tuples_Call[K, V]) RunAndReturn(run func() []Tuple[K, V]) *MockConcurrentMapInterface_Tuples_Call[K, V]
type MockConcurrentMapInterface_UnmarshalJSON_Call ¶
MockConcurrentMapInterface_UnmarshalJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnmarshalJSON'
func (*MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Return(err error) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
func (*MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) Run(run func(b []byte)) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
func (*MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]) RunAndReturn(run func(b []byte) error) *MockConcurrentMapInterface_UnmarshalJSON_Call[K, V]
type MockConcurrentMapInterface_Upsert_Call ¶
MockConcurrentMapInterface_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*MockConcurrentMapInterface_Upsert_Call[K, V]) Return ¶
func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) Return(v V) *MockConcurrentMapInterface_Upsert_Call[K, V]
func (*MockConcurrentMapInterface_Upsert_Call[K, V]) Run ¶
func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) Run(run func(key K, value V, cb UpsertCb[K, V])) *MockConcurrentMapInterface_Upsert_Call[K, V]
func (*MockConcurrentMapInterface_Upsert_Call[K, V]) RunAndReturn ¶
func (_c *MockConcurrentMapInterface_Upsert_Call[K, V]) RunAndReturn(run func(key K, value V, cb UpsertCb[K, V]) V) *MockConcurrentMapInterface_Upsert_Call[K, V]
type MockStringer ¶
MockStringer is an autogenerated mock type for the Stringer type
func NewMockStringer ¶
func NewMockStringer(t interface {
mock.TestingT
Cleanup(func())
}) *MockStringer
NewMockStringer creates a new instance of MockStringer. 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 (*MockStringer) EXPECT ¶
func (_m *MockStringer) EXPECT() *MockStringer_Expecter
func (*MockStringer) String ¶
func (_mock *MockStringer) String() string
String provides a mock function for the type MockStringer
type MockStringer_Expecter ¶
type MockStringer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStringer_Expecter) String ¶
func (_e *MockStringer_Expecter) String() *MockStringer_String_Call
String is a helper method to define mock.On call
type MockStringer_String_Call ¶
MockStringer_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*MockStringer_String_Call) Return ¶
func (_c *MockStringer_String_Call) Return(s string) *MockStringer_String_Call
func (*MockStringer_String_Call) Run ¶
func (_c *MockStringer_String_Call) Run(run func()) *MockStringer_String_Call
func (*MockStringer_String_Call) RunAndReturn ¶
func (_c *MockStringer_String_Call) RunAndReturn(run func() string) *MockStringer_String_Call
type SlotingFunc ¶
type Stringer ¶
type Stringer interface {
fmt.Stringer
comparable
}
Stringer is a stringer interface.