mocks

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	mock.Mock
}

Graph is an autogenerated mock type for the Graph type

func NewGraph

func NewGraph(t interface {
	mock.TestingT
	Cleanup(func())
}) *Graph

NewGraph creates a new instance of Graph. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Graph) AddMappedArc

func (_m *Graph) AddMappedArc(Source string, Destination string, Distance int64) error

AddMappedArc provides a mock function with given fields: Source, Destination, Distance

func (*Graph) AddMappedVertex

func (_m *Graph) AddMappedVertex(ID string) int

AddMappedVertex provides a mock function with given fields: ID

func (*Graph) GetMapped

func (_m *Graph) GetMapped(a int) (string, error)

GetMapped provides a mock function with given fields: a

type LayoutDrawer

type LayoutDrawer struct {
	mock.Mock
}

LayoutDrawer is an autogenerated mock type for the LayoutDrawer type

func NewLayoutDrawer

func NewLayoutDrawer(t interface {
	mock.TestingT
	Cleanup(func())
}) *LayoutDrawer

NewLayoutDrawer creates a new instance of LayoutDrawer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LayoutDrawer) Circle

func (_m *LayoutDrawer) Circle(x int, y int, r int, s ...string)

Circle provides a mock function with given fields: x, y, r, s

func (*LayoutDrawer) Path

func (_m *LayoutDrawer) Path(d string, s ...string)

Path provides a mock function with given fields: d, s

func (*LayoutDrawer) Roundrect

func (_m *LayoutDrawer) Roundrect(x int, y int, w int, h int, rx int, ry int, s ...string)

Roundrect provides a mock function with given fields: x, y, w, h, rx, ry, s

func (*LayoutDrawer) TextEnd

func (_m *LayoutDrawer) TextEnd()

TextEnd provides a mock function with given fields:

func (*LayoutDrawer) Textspan

func (_m *LayoutDrawer) Textspan(x int, y int, t string, s ...string)

Textspan provides a mock function with given fields: x, y, t, s

type PathFinder added in v0.0.2

type PathFinder struct {
	mock.Mock
}

PathFinder is an autogenerated mock type for the PathFinder type

func NewPathFinder added in v0.0.2

func NewPathFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *PathFinder

NewPathFinder creates a new instance of PathFinder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PathFinder) AddConnection added in v0.0.2

func (_m *PathFinder) AddConnection(from djikstra.Point, cost djikstra.CostFunction, to ...djikstra.Point)

AddConnection provides a mock function with given fields: from, cost, to

func (*PathFinder) BestPath added in v0.0.2

func (_m *PathFinder) BestPath() ([]djikstra.Point, error)

BestPath provides a mock function with given fields:

Jump to

Keyboard shortcuts

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