Documentation ¶
Index ¶
- type Graph
- type LayoutDrawer
- func (_m *LayoutDrawer) Circle(x int, y int, r int, s ...string)
- func (_m *LayoutDrawer) Path(d string, s ...string)
- func (_m *LayoutDrawer) Roundrect(x int, y int, w int, h int, rx int, ry int, s ...string)
- func (_m *LayoutDrawer) TextEnd()
- func (_m *LayoutDrawer) Textspan(x int, y int, t string, s ...string)
- type PathFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
Graph is an autogenerated mock type for the Graph type
func NewGraph ¶
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 ¶
AddMappedArc provides a mock function with given fields: Source, Destination, Distance
func (*Graph) AddMappedVertex ¶
AddMappedVertex provides a mock function with given fields: ID
type LayoutDrawer ¶
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 ¶
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:
type PathFinder ¶ added in v0.0.2
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