sort_map

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sort_map is a generated GoMock package.

Index

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

type MockMapIndexes[K cmp.Ordered] struct {
	// contains filtered or unexported fields
}

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

type MockMapIndexesMockRecorder[K cmp.Ordered] struct {
	// contains filtered or unexported fields
}

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.

func (*MockMapIndexesMockRecorder[K]) Remove

func (mr *MockMapIndexesMockRecorder[K]) Remove(key any) *gomock.Call

Remove indicates an expected call of Remove.

type MockSortMap

type MockSortMap[K cmp.Ordered, V any] struct {
	// contains filtered or unexported fields
}

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.

type SortMap

type SortMap[K cmp.Ordered, V any] interface {
	Insert(key K, value V) error
	GetByKey(key K) (v V, ok bool)
	RemoveByKey(key K) error
	Keys() iter.Seq[K]
	Range() iter.Seq2[K, V]
	Indexes() iter.Seq[int]
	RangeWithIndex() iter.Seq2[int, V]
}

func Map

func Map[K cmp.Ordered, V any]() SortMap[K, V]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL