Documentation
¶
Overview ¶
Package sort_map is a generated GoMock package.
Index ¶
- type MapIndexes
- type MockMapIndexes
- type MockMapIndexesMockRecorder
- type MockSortMap
- func (m *MockSortMap[K, V]) EXPECT() *MockSortMapMockRecorder[K, V]
- func (m *MockSortMap[K, V]) GetByKey(key K) (V, bool)
- func (m *MockSortMap[K, V]) Indexes() iter.Seq[int]
- func (m *MockSortMap[K, V]) Insert(key K, value V) error
- func (m *MockSortMap[K, V]) Keys() iter.Seq[K]
- func (m *MockSortMap[K, V]) Range() iter.Seq2[K, V]
- func (m *MockSortMap[K, V]) RangeWithIndex() iter.Seq2[int, V]
- func (m *MockSortMap[K, V]) RemoveByKey(key K) error
- type MockSortMapMockRecorder
- func (mr *MockSortMapMockRecorder[K, V]) GetByKey(key any) *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Indexes() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Insert(key, value any) *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Keys() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Range() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) RangeWithIndex() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) RemoveByKey(key any) *gomock.Call
- type SortMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapIndexes ¶
type MapIndexes[K cmp.Ordered] interface { Insert(key K) Remove(key K) Keys() iter.Seq[int] Range() iter.Seq2[int, K] }
func NewMapIndexes ¶
func NewMapIndexes[K cmp.Ordered]() MapIndexes[K]
type MockMapIndexes ¶
MockMapIndexes is a mock of MapIndexes interface.
func NewMockMapIndexes ¶
func NewMockMapIndexes[K cmp.Ordered](ctrl *gomock.Controller) *MockMapIndexes[K]
NewMockMapIndexes creates a new mock instance.
func (*MockMapIndexes[K]) EXPECT ¶
func (m *MockMapIndexes[K]) EXPECT() *MockMapIndexesMockRecorder[K]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMapIndexes[K]) Insert ¶
func (m *MockMapIndexes[K]) Insert(key K)
Insert mocks base method.
func (*MockMapIndexes[K]) Keys ¶
func (m *MockMapIndexes[K]) Keys() iter.Seq[int]
Keys mocks base method.
func (*MockMapIndexes[K]) Range ¶
func (m *MockMapIndexes[K]) Range() iter.Seq2[int, K]
Range mocks base method.
func (*MockMapIndexes[K]) Remove ¶
func (m *MockMapIndexes[K]) Remove(key K)
Remove mocks base method.
type MockMapIndexesMockRecorder ¶
MockMapIndexesMockRecorder is the mock recorder for MockMapIndexes.
func (*MockMapIndexesMockRecorder[K]) Insert ¶
func (mr *MockMapIndexesMockRecorder[K]) Insert(key any) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockMapIndexesMockRecorder[K]) Keys ¶
func (mr *MockMapIndexesMockRecorder[K]) Keys() *gomock.Call
Keys indicates an expected call of Keys.
func (*MockMapIndexesMockRecorder[K]) Range ¶
func (mr *MockMapIndexesMockRecorder[K]) Range() *gomock.Call
Range indicates an expected call of Range.
type MockSortMap ¶
MockSortMap is a mock of SortMap interface.
func NewMockSortMap ¶
func NewMockSortMap[K cmp.Ordered, V any](ctrl *gomock.Controller) *MockSortMap[K, V]
NewMockSortMap creates a new mock instance.
func (*MockSortMap[K, V]) EXPECT ¶
func (m *MockSortMap[K, V]) EXPECT() *MockSortMapMockRecorder[K, V]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSortMap[K, V]) GetByKey ¶
func (m *MockSortMap[K, V]) GetByKey(key K) (V, bool)
GetByKey mocks base method.
func (*MockSortMap[K, V]) Indexes ¶
func (m *MockSortMap[K, V]) Indexes() iter.Seq[int]
Indexes mocks base method.
func (*MockSortMap[K, V]) Insert ¶
func (m *MockSortMap[K, V]) Insert(key K, value V) error
Insert mocks base method.
func (*MockSortMap[K, V]) Keys ¶
func (m *MockSortMap[K, V]) Keys() iter.Seq[K]
Keys mocks base method.
func (*MockSortMap[K, V]) Range ¶
func (m *MockSortMap[K, V]) Range() iter.Seq2[K, V]
Range mocks base method.
func (*MockSortMap[K, V]) RangeWithIndex ¶
func (m *MockSortMap[K, V]) RangeWithIndex() iter.Seq2[int, V]
RangeWithIndex mocks base method.
func (*MockSortMap[K, V]) RemoveByKey ¶
func (m *MockSortMap[K, V]) RemoveByKey(key K) error
RemoveByKey mocks base method.
type MockSortMapMockRecorder ¶
type MockSortMapMockRecorder[K cmp.Ordered, V any] struct { // contains filtered or unexported fields }
MockSortMapMockRecorder is the mock recorder for MockSortMap.
func (*MockSortMapMockRecorder[K, V]) GetByKey ¶
func (mr *MockSortMapMockRecorder[K, V]) GetByKey(key any) *gomock.Call
GetByKey indicates an expected call of GetByKey.
func (*MockSortMapMockRecorder[K, V]) Indexes ¶
func (mr *MockSortMapMockRecorder[K, V]) Indexes() *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockSortMapMockRecorder[K, V]) Insert ¶
func (mr *MockSortMapMockRecorder[K, V]) Insert(key, value any) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockSortMapMockRecorder[K, V]) Keys ¶
func (mr *MockSortMapMockRecorder[K, V]) Keys() *gomock.Call
Keys indicates an expected call of Keys.
func (*MockSortMapMockRecorder[K, V]) Range ¶
func (mr *MockSortMapMockRecorder[K, V]) Range() *gomock.Call
Range indicates an expected call of Range.
func (*MockSortMapMockRecorder[K, V]) RangeWithIndex ¶
func (mr *MockSortMapMockRecorder[K, V]) RangeWithIndex() *gomock.Call
RangeWithIndex indicates an expected call of RangeWithIndex.
func (*MockSortMapMockRecorder[K, V]) RemoveByKey ¶
func (mr *MockSortMapMockRecorder[K, V]) RemoveByKey(key any) *gomock.Call
RemoveByKey indicates an expected call of RemoveByKey.