Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: dg.go
Generated by this command:
mockgen -destination mocks/dg_mock.go -source dg.go -package mocks
Package mocks is a generated GoMock package.
Index ¶
- type MockDG
- func (m *MockDG[T]) AddEdge(fromVertexID, toVertexID string) error
- func (m *MockDG[T]) AddVertex(id string, value T) error
- func (m *MockDG[T]) CanAddEdge(fromVertexID, toVertexID string) bool
- func (m *MockDG[T]) DeleteEdge(fromVertexID, toVertexID string) error
- func (m *MockDG[T]) DeleteVertex(id string)
- func (m *MockDG[T]) DeleteVertexInEdges(id string) error
- func (m *MockDG[T]) DeleteVertexOutEdges(id string) error
- func (m *MockDG[T]) EXPECT() *MockDGMockRecorder[T]
- func (m *MockDG[T]) GetRandomVertices(n uint) []*dg.Vertex[T]
- func (m *MockDG[T]) GetSinkVertices() []*dg.Vertex[T]
- func (m *MockDG[T]) GetSourceVertices() []*dg.Vertex[T]
- func (m *MockDG[T]) GetVertex(id string) (*dg.Vertex[T], error)
- func (m *MockDG[T]) GetVertices() map[string]*dg.Vertex[T]
- func (m *MockDG[T]) VertexCount() uint64
- type MockDGMockRecorder
- func (mr *MockDGMockRecorder[T]) AddEdge(fromVertexID, toVertexID any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) AddVertex(id, value any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) CanAddEdge(fromVertexID, toVertexID any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) DeleteEdge(fromVertexID, toVertexID any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) DeleteVertex(id any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) DeleteVertexInEdges(id any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) DeleteVertexOutEdges(id any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) GetRandomVertices(n any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) GetSinkVertices() *gomock.Call
- func (mr *MockDGMockRecorder[T]) GetSourceVertices() *gomock.Call
- func (mr *MockDGMockRecorder[T]) GetVertex(id any) *gomock.Call
- func (mr *MockDGMockRecorder[T]) GetVertices() *gomock.Call
- func (mr *MockDGMockRecorder[T]) VertexCount() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDG ¶
type MockDG[T comparable] struct { // contains filtered or unexported fields }
MockDG is a mock of DG interface.
func NewMockDG ¶
func NewMockDG[T comparable](ctrl *gomock.Controller) *MockDG[T]
NewMockDG creates a new mock instance.
func (*MockDG[T]) CanAddEdge ¶
CanAddEdge mocks base method.
func (*MockDG[T]) DeleteEdge ¶
DeleteEdge mocks base method.
func (*MockDG[T]) DeleteVertex ¶
DeleteVertex mocks base method.
func (*MockDG[T]) DeleteVertexInEdges ¶ added in v2.0.30
DeleteVertexInEdges mocks base method.
func (*MockDG[T]) DeleteVertexOutEdges ¶ added in v2.0.30
DeleteVertexOutEdges mocks base method.
func (*MockDG[T]) EXPECT ¶
func (m *MockDG[T]) EXPECT() *MockDGMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDG[T]) GetRandomVertices ¶
GetRandomVertices mocks base method.
func (*MockDG[T]) GetSinkVertices ¶
GetSinkVertices mocks base method.
func (*MockDG[T]) GetSourceVertices ¶
GetSourceVertices mocks base method.
func (*MockDG[T]) GetVertices ¶
GetVertices mocks base method.
func (*MockDG[T]) VertexCount ¶
VertexCount mocks base method.
type MockDGMockRecorder ¶
type MockDGMockRecorder[T comparable] struct { // contains filtered or unexported fields }
MockDGMockRecorder is the mock recorder for MockDG.
func (*MockDGMockRecorder[T]) AddEdge ¶
func (mr *MockDGMockRecorder[T]) AddEdge(fromVertexID, toVertexID any) *gomock.Call
AddEdge indicates an expected call of AddEdge.
func (*MockDGMockRecorder[T]) AddVertex ¶
func (mr *MockDGMockRecorder[T]) AddVertex(id, value any) *gomock.Call
AddVertex indicates an expected call of AddVertex.
func (*MockDGMockRecorder[T]) CanAddEdge ¶
func (mr *MockDGMockRecorder[T]) CanAddEdge(fromVertexID, toVertexID any) *gomock.Call
CanAddEdge indicates an expected call of CanAddEdge.
func (*MockDGMockRecorder[T]) DeleteEdge ¶
func (mr *MockDGMockRecorder[T]) DeleteEdge(fromVertexID, toVertexID any) *gomock.Call
DeleteEdge indicates an expected call of DeleteEdge.
func (*MockDGMockRecorder[T]) DeleteVertex ¶
func (mr *MockDGMockRecorder[T]) DeleteVertex(id any) *gomock.Call
DeleteVertex indicates an expected call of DeleteVertex.
func (*MockDGMockRecorder[T]) DeleteVertexInEdges ¶ added in v2.0.30
func (mr *MockDGMockRecorder[T]) DeleteVertexInEdges(id any) *gomock.Call
DeleteVertexInEdges indicates an expected call of DeleteVertexInEdges.
func (*MockDGMockRecorder[T]) DeleteVertexOutEdges ¶ added in v2.0.30
func (mr *MockDGMockRecorder[T]) DeleteVertexOutEdges(id any) *gomock.Call
DeleteVertexOutEdges indicates an expected call of DeleteVertexOutEdges.
func (*MockDGMockRecorder[T]) GetRandomVertices ¶
func (mr *MockDGMockRecorder[T]) GetRandomVertices(n any) *gomock.Call
GetRandomVertices indicates an expected call of GetRandomVertices.
func (*MockDGMockRecorder[T]) GetSinkVertices ¶
func (mr *MockDGMockRecorder[T]) GetSinkVertices() *gomock.Call
GetSinkVertices indicates an expected call of GetSinkVertices.
func (*MockDGMockRecorder[T]) GetSourceVertices ¶
func (mr *MockDGMockRecorder[T]) GetSourceVertices() *gomock.Call
GetSourceVertices indicates an expected call of GetSourceVertices.
func (*MockDGMockRecorder[T]) GetVertex ¶
func (mr *MockDGMockRecorder[T]) GetVertex(id any) *gomock.Call
GetVertex indicates an expected call of GetVertex.
func (*MockDGMockRecorder[T]) GetVertices ¶
func (mr *MockDGMockRecorder[T]) GetVertices() *gomock.Call
GetVertices indicates an expected call of GetVertices.
func (*MockDGMockRecorder[T]) VertexCount ¶
func (mr *MockDGMockRecorder[T]) VertexCount() *gomock.Call
VertexCount indicates an expected call of VertexCount.