mocks

package
v2.1.38 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: dag.go

Generated by this command:

mockgen -destination mocks/dag_mock.go -source dag.go -package mocks

Package mocks is a generated GoMock package.

Index

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]) AddEdge

func (m *MockDAG[T]) AddEdge(fromVertexID, toVertexID string) error

AddEdge mocks base method.

func (*MockDAG[T]) AddVertex

func (m *MockDAG[T]) AddVertex(id string, value T) error

AddVertex mocks base method.

func (*MockDAG[T]) CanAddEdge

func (m *MockDAG[T]) CanAddEdge(fromVertexID, toVertexID string) bool

CanAddEdge mocks base method.

func (*MockDAG[T]) DeleteEdge

func (m *MockDAG[T]) DeleteEdge(fromVertexID, toVertexID string) error

DeleteEdge mocks base method.

func (*MockDAG[T]) DeleteVertex

func (m *MockDAG[T]) DeleteVertex(id string)

DeleteVertex mocks base method.

func (*MockDAG[T]) DeleteVertexInEdges added in v2.0.30

func (m *MockDAG[T]) DeleteVertexInEdges(id string) error

DeleteVertexInEdges mocks base method.

func (*MockDAG[T]) DeleteVertexOutEdges added in v2.0.30

func (m *MockDAG[T]) DeleteVertexOutEdges(id string) error

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

func (m *MockDAG[T]) GetRandomVertices(n uint) []*dag.Vertex[T]

GetRandomVertices mocks base method.

func (*MockDAG[T]) GetSinkVertices

func (m *MockDAG[T]) GetSinkVertices() []*dag.Vertex[T]

GetSinkVertices mocks base method.

func (*MockDAG[T]) GetSourceVertices

func (m *MockDAG[T]) GetSourceVertices() []*dag.Vertex[T]

GetSourceVertices mocks base method.

func (*MockDAG[T]) GetVertex

func (m *MockDAG[T]) GetVertex(id string) (*dag.Vertex[T], error)

GetVertex mocks base method.

func (*MockDAG[T]) GetVertices

func (m *MockDAG[T]) GetVertices() map[string]*dag.Vertex[T]

GetVertices mocks base method.

func (*MockDAG[T]) VertexCount

func (m *MockDAG[T]) VertexCount() uint64

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 any) *gomock.Call

AddEdge indicates an expected call of AddEdge.

func (*MockDAGMockRecorder[T]) AddVertex

func (mr *MockDAGMockRecorder[T]) AddVertex(id, value any) *gomock.Call

AddVertex indicates an expected call of AddVertex.

func (*MockDAGMockRecorder[T]) CanAddEdge

func (mr *MockDAGMockRecorder[T]) CanAddEdge(fromVertexID, toVertexID any) *gomock.Call

CanAddEdge indicates an expected call of CanAddEdge.

func (*MockDAGMockRecorder[T]) DeleteEdge

func (mr *MockDAGMockRecorder[T]) DeleteEdge(fromVertexID, toVertexID any) *gomock.Call

DeleteEdge indicates an expected call of DeleteEdge.

func (*MockDAGMockRecorder[T]) DeleteVertex

func (mr *MockDAGMockRecorder[T]) DeleteVertex(id any) *gomock.Call

DeleteVertex indicates an expected call of DeleteVertex.

func (*MockDAGMockRecorder[T]) DeleteVertexInEdges added in v2.0.30

func (mr *MockDAGMockRecorder[T]) DeleteVertexInEdges(id any) *gomock.Call

DeleteVertexInEdges indicates an expected call of DeleteVertexInEdges.

func (*MockDAGMockRecorder[T]) DeleteVertexOutEdges added in v2.0.30

func (mr *MockDAGMockRecorder[T]) DeleteVertexOutEdges(id any) *gomock.Call

DeleteVertexOutEdges indicates an expected call of DeleteVertexOutEdges.

func (*MockDAGMockRecorder[T]) GetRandomVertices

func (mr *MockDAGMockRecorder[T]) GetRandomVertices(n any) *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 any) *gomock.Call

GetVertex indicates an expected call of GetVertex.

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.

Jump to

Keyboard shortcuts

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