Documentation
¶
Overview ¶
Package sort_map is a generated GoMock package.
Index ¶
- type MapIndexes
- type MapList
- type MockMapIndexes
- func (m *MockMapIndexes[K]) EXPECT() *MockMapIndexesMockRecorder[K]
- func (m *MockMapIndexes[K]) GetKey(idx int) K
- func (m *MockMapIndexes[K]) Insert(key K)
- func (m *MockMapIndexes[K]) Keys() iter.Seq[int]
- func (m *MockMapIndexes[K]) Range() iter.Seq2[int, K]
- func (m *MockMapIndexes[K]) Remove(key K)
- type MockMapIndexesMockRecorder
- func (mr *MockMapIndexesMockRecorder[K]) GetKey(idx any) *gomock.Call
- func (mr *MockMapIndexesMockRecorder[K]) Insert(key any) *gomock.Call
- func (mr *MockMapIndexesMockRecorder[K]) Keys() *gomock.Call
- func (mr *MockMapIndexesMockRecorder[K]) Range() *gomock.Call
- func (mr *MockMapIndexesMockRecorder[K]) Remove(key any) *gomock.Call
- type MockMapList
- func (m *MockMapList[V]) Append(value V) int
- func (m *MockMapList[V]) EXPECT() *MockMapListMockRecorder[V]
- func (m *MockMapList[V]) Get(index int) (V, bool)
- func (m *MockMapList[V]) Indexes() iter.Seq[int]
- func (m *MockMapList[V]) InsertToEmpty(value V) int
- func (m *MockMapList[V]) MarshalJSON() ([]byte, error)
- func (m *MockMapList[V]) MarshalYAML() (any, error)
- func (m *MockMapList[V]) Range() iter.Seq2[int, V]
- func (m *MockMapList[V]) Set(index int, value V) (V, bool)
- func (m *MockMapList[V]) UnmarshalJSON(arg0 []byte) error
- func (m *MockMapList[V]) UnmarshalYAML(value *yaml.Node) error
- type MockMapListMockRecorder
- func (mr *MockMapListMockRecorder[V]) Append(value any) *gomock.Call
- func (mr *MockMapListMockRecorder[V]) Get(index any) *gomock.Call
- func (mr *MockMapListMockRecorder[V]) Indexes() *gomock.Call
- func (mr *MockMapListMockRecorder[V]) InsertToEmpty(value any) *gomock.Call
- func (mr *MockMapListMockRecorder[V]) MarshalJSON() *gomock.Call
- func (mr *MockMapListMockRecorder[V]) MarshalYAML() *gomock.Call
- func (mr *MockMapListMockRecorder[V]) Range() *gomock.Call
- func (mr *MockMapListMockRecorder[V]) Set(index, value any) *gomock.Call
- func (mr *MockMapListMockRecorder[V]) UnmarshalJSON(arg0 any) *gomock.Call
- func (mr *MockMapListMockRecorder[V]) UnmarshalYAML(value any) *gomock.Call
- type MockSortMap
- func (m *MockSortMap[K, V]) EXPECT() *MockSortMapMockRecorder[K, V]
- func (m *MockSortMap[K, V]) Get(key K) (V, bool)
- func (m *MockSortMap[K, V]) Indexes() iter.Seq[int]
- func (m *MockSortMap[K, V]) Keys() iter.Seq[K]
- func (m *MockSortMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *MockSortMap[K, V]) MarshalYAML() (any, error)
- 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)
- func (m *MockSortMap[K, V]) Set(key K, value V) (V, bool)
- func (m *MockSortMap[K, V]) UnmarshalJSON(arg0 []byte) error
- func (m *MockSortMap[K, V]) UnmarshalYAML(value *yaml.Node) error
- type MockSortMapMockRecorder
- func (mr *MockSortMapMockRecorder[K, V]) Get(key any) *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Indexes() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) Keys() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) MarshalJSON() *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) MarshalYAML() *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
- func (mr *MockSortMapMockRecorder[K, V]) Set(key, value any) *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) UnmarshalJSON(arg0 any) *gomock.Call
- func (mr *MockSortMapMockRecorder[K, V]) UnmarshalYAML(value 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) GetKey(idx int) K Keys() iter.Seq[int] Range() iter.Seq2[int, K] }
func NewMapIndexes ¶
func NewMapIndexes[K cmp.Ordered]() MapIndexes[K]
type MapList ¶ added in v1.0.11
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]) GetKey ¶ added in v1.0.11
func (m *MockMapIndexes[K]) GetKey(idx int) K
GetKey mocks base method.
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]) GetKey ¶ added in v1.0.11
func (mr *MockMapIndexesMockRecorder[K]) GetKey(idx any) *gomock.Call
GetKey indicates an expected call of GetKey.
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 MockMapList ¶ added in v1.0.11
type MockMapList[V any] struct { // contains filtered or unexported fields }
MockMapList is a mock of MapList interface.
func NewMockMapList ¶ added in v1.0.11
func NewMockMapList[V any](ctrl *gomock.Controller) *MockMapList[V]
NewMockMapList creates a new mock instance.
func (*MockMapList[V]) Append ¶ added in v1.0.11
func (m *MockMapList[V]) Append(value V) int
Append mocks base method.
func (*MockMapList[V]) EXPECT ¶ added in v1.0.11
func (m *MockMapList[V]) EXPECT() *MockMapListMockRecorder[V]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMapList[V]) Get ¶ added in v1.0.11
func (m *MockMapList[V]) Get(index int) (V, bool)
Get mocks base method.
func (*MockMapList[V]) Indexes ¶ added in v1.0.11
func (m *MockMapList[V]) Indexes() iter.Seq[int]
Indexes mocks base method.
func (*MockMapList[V]) InsertToEmpty ¶ added in v1.0.11
func (m *MockMapList[V]) InsertToEmpty(value V) int
InsertToEmpty mocks base method.
func (*MockMapList[V]) MarshalJSON ¶ added in v1.0.11
func (m *MockMapList[V]) MarshalJSON() ([]byte, error)
MarshalJSON mocks base method.
func (*MockMapList[V]) MarshalYAML ¶ added in v1.0.11
func (m *MockMapList[V]) MarshalYAML() (any, error)
MarshalYAML mocks base method.
func (*MockMapList[V]) Range ¶ added in v1.0.11
func (m *MockMapList[V]) Range() iter.Seq2[int, V]
Range mocks base method.
func (*MockMapList[V]) Set ¶ added in v1.0.11
func (m *MockMapList[V]) Set(index int, value V) (V, bool)
Set mocks base method.
func (*MockMapList[V]) UnmarshalJSON ¶ added in v1.0.11
func (m *MockMapList[V]) UnmarshalJSON(arg0 []byte) error
UnmarshalJSON mocks base method.
func (*MockMapList[V]) UnmarshalYAML ¶ added in v1.0.11
func (m *MockMapList[V]) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML mocks base method.
type MockMapListMockRecorder ¶ added in v1.0.11
type MockMapListMockRecorder[V any] struct { // contains filtered or unexported fields }
MockMapListMockRecorder is the mock recorder for MockMapList.
func (*MockMapListMockRecorder[V]) Append ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) Append(value any) *gomock.Call
Append indicates an expected call of Append.
func (*MockMapListMockRecorder[V]) Get ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) Get(index any) *gomock.Call
Get indicates an expected call of Get.
func (*MockMapListMockRecorder[V]) Indexes ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) Indexes() *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockMapListMockRecorder[V]) InsertToEmpty ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) InsertToEmpty(value any) *gomock.Call
InsertToEmpty indicates an expected call of InsertToEmpty.
func (*MockMapListMockRecorder[V]) MarshalJSON ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) MarshalJSON() *gomock.Call
MarshalJSON indicates an expected call of MarshalJSON.
func (*MockMapListMockRecorder[V]) MarshalYAML ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) MarshalYAML() *gomock.Call
MarshalYAML indicates an expected call of MarshalYAML.
func (*MockMapListMockRecorder[V]) Range ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) Range() *gomock.Call
Range indicates an expected call of Range.
func (*MockMapListMockRecorder[V]) Set ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) Set(index, value any) *gomock.Call
Set indicates an expected call of Set.
func (*MockMapListMockRecorder[V]) UnmarshalJSON ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) UnmarshalJSON(arg0 any) *gomock.Call
UnmarshalJSON indicates an expected call of UnmarshalJSON.
func (*MockMapListMockRecorder[V]) UnmarshalYAML ¶ added in v1.0.11
func (mr *MockMapListMockRecorder[V]) UnmarshalYAML(value any) *gomock.Call
UnmarshalYAML indicates an expected call of UnmarshalYAML.
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]) Get ¶ added in v1.0.11
func (m *MockSortMap[K, V]) Get(key K) (V, bool)
Get 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]) Keys ¶
func (m *MockSortMap[K, V]) Keys() iter.Seq[K]
Keys mocks base method.
func (*MockSortMap[K, V]) MarshalJSON ¶ added in v1.0.11
func (m *MockSortMap[K, V]) MarshalJSON() ([]byte, error)
MarshalJSON mocks base method.
func (*MockSortMap[K, V]) MarshalYAML ¶ added in v1.0.11
func (m *MockSortMap[K, V]) MarshalYAML() (any, error)
MarshalYAML 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)
RemoveByKey mocks base method.
func (*MockSortMap[K, V]) Set ¶ added in v1.0.11
func (m *MockSortMap[K, V]) Set(key K, value V) (V, bool)
Set mocks base method.
func (*MockSortMap[K, V]) UnmarshalJSON ¶ added in v1.0.11
func (m *MockSortMap[K, V]) UnmarshalJSON(arg0 []byte) error
UnmarshalJSON mocks base method.
func (*MockSortMap[K, V]) UnmarshalYAML ¶ added in v1.0.11
func (m *MockSortMap[K, V]) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML 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]) Get ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockSortMapMockRecorder[K, V]) Indexes ¶
func (mr *MockSortMapMockRecorder[K, V]) Indexes() *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockSortMapMockRecorder[K, V]) Keys ¶
func (mr *MockSortMapMockRecorder[K, V]) Keys() *gomock.Call
Keys indicates an expected call of Keys.
func (*MockSortMapMockRecorder[K, V]) MarshalJSON ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) MarshalJSON() *gomock.Call
MarshalJSON indicates an expected call of MarshalJSON.
func (*MockSortMapMockRecorder[K, V]) MarshalYAML ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) MarshalYAML() *gomock.Call
MarshalYAML indicates an expected call of MarshalYAML.
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.
func (*MockSortMapMockRecorder[K, V]) Set ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) Set(key, value any) *gomock.Call
Set indicates an expected call of Set.
func (*MockSortMapMockRecorder[K, V]) UnmarshalJSON ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) UnmarshalJSON(arg0 any) *gomock.Call
UnmarshalJSON indicates an expected call of UnmarshalJSON.
func (*MockSortMapMockRecorder[K, V]) UnmarshalYAML ¶ added in v1.0.11
func (mr *MockSortMapMockRecorder[K, V]) UnmarshalYAML(value any) *gomock.Call
UnmarshalYAML indicates an expected call of UnmarshalYAML.
type SortMap ¶
type SortMap[K cmp.Ordered, V any] interface { Set(key K, value V) (oldValue V, present bool) Get(key K) (value V, present bool) RemoveByKey(key K) Keys() iter.Seq[K] Range() iter.Seq2[K, V] Indexes() iter.Seq[int] RangeWithIndex() iter.Seq2[int, V] json.Unmarshaler json.Marshaler yaml.Unmarshaler yaml.Marshaler }