Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDAG
- func (m *MockDAG[T]) AddEdge(fromVertexID, toVertexID string) error
- func (m *MockDAG[T]) AddVertex(id string, value T) error
- func (m *MockDAG[T]) CanAddEdge(fromVertexID, toVertexID string) bool
- func (m *MockDAG[T]) DeleteEdge(fromVertexID, toVertexID string) error
- func (m *MockDAG[T]) DeleteVertex(id string)
- func (m *MockDAG[T]) DeleteVertexInEdges(id string) error
- func (m *MockDAG[T]) DeleteVertexOutEdges(id string) error
- func (m *MockDAG[T]) EXPECT() *MockDAGMockRecorder[T]
- func (m *MockDAG[T]) GetRandomVertices(n uint) []*dag.Vertex[T]
- func (m *MockDAG[T]) GetSinkVertices() []*dag.Vertex[T]
- func (m *MockDAG[T]) GetSourceVertices() []*dag.Vertex[T]
- func (m *MockDAG[T]) GetVertex(id string) (*dag.Vertex[T], error)
- func (m *MockDAG[T]) GetVertexKeys() []string
- func (m *MockDAG[T]) GetVertices() map[string]*dag.Vertex[T]
- func (m *MockDAG[T]) VertexCount() int
- type MockDAGMockRecorder
- func (mr *MockDAGMockRecorder[T]) AddEdge(fromVertexID, toVertexID interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) AddVertex(id, value interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) CanAddEdge(fromVertexID, toVertexID interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) DeleteEdge(fromVertexID, toVertexID interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) DeleteVertex(id interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) DeleteVertexInEdges(id interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) DeleteVertexOutEdges(id interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetRandomVertices(n interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetSinkVertices() *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetSourceVertices() *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetVertex(id interface{}) *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetVertexKeys() *gomock.Call
- func (mr *MockDAGMockRecorder[T]) GetVertices() *gomock.Call
- func (mr *MockDAGMockRecorder[T]) VertexCount() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDAG ¶
type MockDAG[T comparable] struct { // contains filtered or unexported fields }
MockDAG is a mock of DAG interface.
func NewMockDAG ¶
func NewMockDAG[T comparable](ctrl *gomock.Controller) *MockDAG[T]
NewMockDAG creates a new mock instance.
func (*MockDAG[T]) CanAddEdge ¶
CanAddEdge mocks base method.
func (*MockDAG[T]) DeleteEdge ¶
DeleteEdge mocks base method.
func (*MockDAG[T]) DeleteVertex ¶
DeleteVertex mocks base method.
func (*MockDAG[T]) DeleteVertexInEdges ¶ added in v2.0.30
DeleteVertexInEdges mocks base method.
func (*MockDAG[T]) DeleteVertexOutEdges ¶ added in v2.0.30
DeleteVertexOutEdges mocks base method.
func (*MockDAG[T]) EXPECT ¶
func (m *MockDAG[T]) EXPECT() *MockDAGMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDAG[T]) GetRandomVertices ¶
GetRandomVertices mocks base method.
func (*MockDAG[T]) GetSinkVertices ¶
GetSinkVertices mocks base method.
func (*MockDAG[T]) GetSourceVertices ¶
GetSourceVertices mocks base method.
func (*MockDAG[T]) GetVertexKeys ¶
GetVertexKeys mocks base method.
func (*MockDAG[T]) GetVertices ¶
GetVertices mocks base method.
func (*MockDAG[T]) VertexCount ¶
VertexCount mocks base method.
type MockDAGMockRecorder ¶
type MockDAGMockRecorder[T comparable] struct { // contains filtered or unexported fields }
MockDAGMockRecorder is the mock recorder for MockDAG.
func (*MockDAGMockRecorder[T]) AddEdge ¶
func (mr *MockDAGMockRecorder[T]) AddEdge(fromVertexID, toVertexID interface{}) *gomock.Call
AddEdge indicates an expected call of AddEdge.
func (*MockDAGMockRecorder[T]) AddVertex ¶
func (mr *MockDAGMockRecorder[T]) AddVertex(id, value interface{}) *gomock.Call
AddVertex indicates an expected call of AddVertex.
func (*MockDAGMockRecorder[T]) CanAddEdge ¶
func (mr *MockDAGMockRecorder[T]) CanAddEdge(fromVertexID, toVertexID interface{}) *gomock.Call
CanAddEdge indicates an expected call of CanAddEdge.
func (*MockDAGMockRecorder[T]) DeleteEdge ¶
func (mr *MockDAGMockRecorder[T]) DeleteEdge(fromVertexID, toVertexID interface{}) *gomock.Call
DeleteEdge indicates an expected call of DeleteEdge.
func (*MockDAGMockRecorder[T]) DeleteVertex ¶
func (mr *MockDAGMockRecorder[T]) DeleteVertex(id interface{}) *gomock.Call
DeleteVertex indicates an expected call of DeleteVertex.
func (*MockDAGMockRecorder[T]) DeleteVertexInEdges ¶ added in v2.0.30
func (mr *MockDAGMockRecorder[T]) DeleteVertexInEdges(id interface{}) *gomock.Call
DeleteVertexInEdges indicates an expected call of DeleteVertexInEdges.
func (*MockDAGMockRecorder[T]) DeleteVertexOutEdges ¶ added in v2.0.30
func (mr *MockDAGMockRecorder[T]) DeleteVertexOutEdges(id interface{}) *gomock.Call
DeleteVertexOutEdges indicates an expected call of DeleteVertexOutEdges.
func (*MockDAGMockRecorder[T]) GetRandomVertices ¶
func (mr *MockDAGMockRecorder[T]) GetRandomVertices(n interface{}) *gomock.Call
GetRandomVertices indicates an expected call of GetRandomVertices.
func (*MockDAGMockRecorder[T]) GetSinkVertices ¶
func (mr *MockDAGMockRecorder[T]) GetSinkVertices() *gomock.Call
GetSinkVertices indicates an expected call of GetSinkVertices.
func (*MockDAGMockRecorder[T]) GetSourceVertices ¶
func (mr *MockDAGMockRecorder[T]) GetSourceVertices() *gomock.Call
GetSourceVertices indicates an expected call of GetSourceVertices.
func (*MockDAGMockRecorder[T]) GetVertex ¶
func (mr *MockDAGMockRecorder[T]) GetVertex(id interface{}) *gomock.Call
GetVertex indicates an expected call of GetVertex.
func (*MockDAGMockRecorder[T]) GetVertexKeys ¶
func (mr *MockDAGMockRecorder[T]) GetVertexKeys() *gomock.Call
GetVertexKeys indicates an expected call of GetVertexKeys.
func (*MockDAGMockRecorder[T]) GetVertices ¶
func (mr *MockDAGMockRecorder[T]) GetVertices() *gomock.Call
GetVertices indicates an expected call of GetVertices.
func (*MockDAGMockRecorder[T]) VertexCount ¶
func (mr *MockDAGMockRecorder[T]) VertexCount() *gomock.Call
VertexCount indicates an expected call of VertexCount.