mocks

package
v0.0.0-...-0749aac Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BFSExecutor

type BFSExecutor struct {
	mock.Mock
}

BFSExecutor is an autogenerated mock type for the BFSExecutor type

func NewBFSExecutor

func NewBFSExecutor(t mockConstructorTestingTNewBFSExecutor) *BFSExecutor

NewBFSExecutor creates a new instance of BFSExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BFSExecutor) BFS

func (_m *BFSExecutor) BFS() (int, error)

BFS provides a mock function with given fields:

func (*BFSExecutor) EXPECT

func (_m *BFSExecutor) EXPECT() *BFSExecutor_Expecter

type BFSExecutor_BFS_Call

type BFSExecutor_BFS_Call struct {
	*mock.Call
}

BFSExecutor_BFS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BFS'

func (*BFSExecutor_BFS_Call) Return

func (_c *BFSExecutor_BFS_Call) Return(_a0 int, _a1 error) *BFSExecutor_BFS_Call

func (*BFSExecutor_BFS_Call) Run

func (_c *BFSExecutor_BFS_Call) Run(run func()) *BFSExecutor_BFS_Call

type BFSExecutor_Expecter

type BFSExecutor_Expecter struct {
	// contains filtered or unexported fields
}

func (*BFSExecutor_Expecter) BFS

BFS is a helper method to define mock.On call

type GameParser

type GameParser struct {
	mock.Mock
}

GameParser is an autogenerated mock type for the GameParser type

func NewGameParser

func NewGameParser(t mockConstructorTestingTNewGameParser) *GameParser

NewGameParser creates a new instance of GameParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GameParser) EXPECT

func (_m *GameParser) EXPECT() *GameParser_Expecter

func (*GameParser) SetupGame

func (_m *GameParser) SetupGame() (pkg.Grid, pkg.Hopper, error)

SetupGame provides a mock function with given fields:

type GameParser_Expecter

type GameParser_Expecter struct {
	// contains filtered or unexported fields
}

func (*GameParser_Expecter) SetupGame

SetupGame is a helper method to define mock.On call

type GameParser_SetupGame_Call

type GameParser_SetupGame_Call struct {
	*mock.Call
}

GameParser_SetupGame_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupGame'

func (*GameParser_SetupGame_Call) Return

func (*GameParser_SetupGame_Call) Run

type Grid

type Grid struct {
	mock.Mock
}

Grid is an autogenerated mock type for the Grid type

func NewGrid

func NewGrid(t mockConstructorTestingTNewGrid) *Grid

NewGrid creates a new instance of Grid. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Grid) AddBlocked

func (_m *Grid) AddBlocked(p1 point.Point, p2 point.Point) error

AddBlocked provides a mock function with given fields: p1, p2

func (*Grid) EXPECT

func (_m *Grid) EXPECT() *Grid_Expecter

func (*Grid) IsFinish

func (_m *Grid) IsFinish(p point.Point) bool

IsFinish provides a mock function with given fields: p

func (*Grid) IsInbound

func (_m *Grid) IsInbound(p point.Point) bool

IsInbound provides a mock function with given fields: p

func (*Grid) IsLegalMove

func (_m *Grid) IsLegalMove(p point.Point) bool

IsLegalMove provides a mock function with given fields: p

type GridFactory

type GridFactory struct {
	mock.Mock
}

GridFactory is an autogenerated mock type for the GridFactory type

func NewGridFactory

func NewGridFactory(t mockConstructorTestingTNewGridFactory) *GridFactory

NewGridFactory creates a new instance of GridFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GridFactory) EXPECT

func (_m *GridFactory) EXPECT() *GridFactory_Expecter

func (*GridFactory) NewGrid

func (_m *GridFactory) NewGrid(boundaries point.Point, finish point.Point) (pkg.Grid, error)

NewGrid provides a mock function with given fields: boundaries, finish

type GridFactory_Expecter

type GridFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*GridFactory_Expecter) NewGrid

func (_e *GridFactory_Expecter) NewGrid(boundaries interface{}, finish interface{}) *GridFactory_NewGrid_Call

NewGrid is a helper method to define mock.On call

  • boundaries point.Point
  • finish point.Point

type GridFactory_NewGrid_Call

type GridFactory_NewGrid_Call struct {
	*mock.Call
}

GridFactory_NewGrid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewGrid'

func (*GridFactory_NewGrid_Call) Return

func (*GridFactory_NewGrid_Call) Run

func (_c *GridFactory_NewGrid_Call) Run(run func(boundaries point.Point, finish point.Point)) *GridFactory_NewGrid_Call

type Grid_AddBlocked_Call

type Grid_AddBlocked_Call struct {
	*mock.Call
}

Grid_AddBlocked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBlocked'

func (*Grid_AddBlocked_Call) Return

func (*Grid_AddBlocked_Call) Run

func (_c *Grid_AddBlocked_Call) Run(run func(p1 point.Point, p2 point.Point)) *Grid_AddBlocked_Call

type Grid_Expecter

type Grid_Expecter struct {
	// contains filtered or unexported fields
}

func (*Grid_Expecter) AddBlocked

func (_e *Grid_Expecter) AddBlocked(p1 interface{}, p2 interface{}) *Grid_AddBlocked_Call

AddBlocked is a helper method to define mock.On call

  • p1 point.Point
  • p2 point.Point

func (*Grid_Expecter) IsFinish

func (_e *Grid_Expecter) IsFinish(p interface{}) *Grid_IsFinish_Call

IsFinish is a helper method to define mock.On call

  • p point.Point

func (*Grid_Expecter) IsInbound

func (_e *Grid_Expecter) IsInbound(p interface{}) *Grid_IsInbound_Call

IsInbound is a helper method to define mock.On call

  • p point.Point

func (*Grid_Expecter) IsLegalMove

func (_e *Grid_Expecter) IsLegalMove(p interface{}) *Grid_IsLegalMove_Call

IsLegalMove is a helper method to define mock.On call

  • p point.Point

type Grid_IsFinish_Call

type Grid_IsFinish_Call struct {
	*mock.Call
}

Grid_IsFinish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsFinish'

func (*Grid_IsFinish_Call) Return

func (_c *Grid_IsFinish_Call) Return(_a0 bool) *Grid_IsFinish_Call

func (*Grid_IsFinish_Call) Run

func (_c *Grid_IsFinish_Call) Run(run func(p point.Point)) *Grid_IsFinish_Call

type Grid_IsInbound_Call

type Grid_IsInbound_Call struct {
	*mock.Call
}

Grid_IsInbound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsInbound'

func (*Grid_IsInbound_Call) Return

func (_c *Grid_IsInbound_Call) Return(_a0 bool) *Grid_IsInbound_Call

func (*Grid_IsInbound_Call) Run

func (_c *Grid_IsInbound_Call) Run(run func(p point.Point)) *Grid_IsInbound_Call

type Grid_IsLegalMove_Call

type Grid_IsLegalMove_Call struct {
	*mock.Call
}

Grid_IsLegalMove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLegalMove'

func (*Grid_IsLegalMove_Call) Return

func (*Grid_IsLegalMove_Call) Run

type Hopper

type Hopper struct {
	mock.Mock
}

Hopper is an autogenerated mock type for the Hopper type

func NewHopper

func NewHopper(t mockConstructorTestingTNewHopper) *Hopper

NewHopper creates a new instance of Hopper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Hopper) CurrentMovesNumber

func (_m *Hopper) CurrentMovesNumber() int

CurrentMovesNumber provides a mock function with given fields:

func (*Hopper) EXPECT

func (_m *Hopper) EXPECT() *Hopper_Expecter

func (*Hopper) Position

func (_m *Hopper) Position() point.Point

Position provides a mock function with given fields:

func (*Hopper) PossibleMoves

func (_m *Hopper) PossibleMoves() []pkg.Hopper

PossibleMoves provides a mock function with given fields:

func (*Hopper) Speed

func (_m *Hopper) Speed() point.Point

Speed provides a mock function with given fields:

type HopperFactory

type HopperFactory struct {
	mock.Mock
}

HopperFactory is an autogenerated mock type for the HopperFactory type

func NewHopperFactory

func NewHopperFactory(t mockConstructorTestingTNewHopperFactory) *HopperFactory

NewHopperFactory creates a new instance of HopperFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HopperFactory) EXPECT

func (_m *HopperFactory) EXPECT() *HopperFactory_Expecter

func (*HopperFactory) NewHopper

func (_m *HopperFactory) NewHopper(position point.Point) pkg.Hopper

NewHopper provides a mock function with given fields: position

type HopperFactory_Expecter

type HopperFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*HopperFactory_Expecter) NewHopper

func (_e *HopperFactory_Expecter) NewHopper(position interface{}) *HopperFactory_NewHopper_Call

NewHopper is a helper method to define mock.On call

  • position point.Point

type HopperFactory_NewHopper_Call

type HopperFactory_NewHopper_Call struct {
	*mock.Call
}

HopperFactory_NewHopper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewHopper'

func (*HopperFactory_NewHopper_Call) Return

func (*HopperFactory_NewHopper_Call) Run

type Hopper_CurrentMovesNumber_Call

type Hopper_CurrentMovesNumber_Call struct {
	*mock.Call
}

Hopper_CurrentMovesNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentMovesNumber'

func (*Hopper_CurrentMovesNumber_Call) Return

func (*Hopper_CurrentMovesNumber_Call) Run

type Hopper_Expecter

type Hopper_Expecter struct {
	// contains filtered or unexported fields
}

func (*Hopper_Expecter) CurrentMovesNumber

func (_e *Hopper_Expecter) CurrentMovesNumber() *Hopper_CurrentMovesNumber_Call

CurrentMovesNumber is a helper method to define mock.On call

func (*Hopper_Expecter) Position

func (_e *Hopper_Expecter) Position() *Hopper_Position_Call

Position is a helper method to define mock.On call

func (*Hopper_Expecter) PossibleMoves

func (_e *Hopper_Expecter) PossibleMoves() *Hopper_PossibleMoves_Call

PossibleMoves is a helper method to define mock.On call

func (*Hopper_Expecter) Speed

func (_e *Hopper_Expecter) Speed() *Hopper_Speed_Call

Speed is a helper method to define mock.On call

type Hopper_Position_Call

type Hopper_Position_Call struct {
	*mock.Call
}

Hopper_Position_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Position'

func (*Hopper_Position_Call) Return

func (*Hopper_Position_Call) Run

func (_c *Hopper_Position_Call) Run(run func()) *Hopper_Position_Call

type Hopper_PossibleMoves_Call

type Hopper_PossibleMoves_Call struct {
	*mock.Call
}

Hopper_PossibleMoves_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PossibleMoves'

func (*Hopper_PossibleMoves_Call) Return

func (*Hopper_PossibleMoves_Call) Run

type Hopper_Speed_Call

type Hopper_Speed_Call struct {
	*mock.Call
}

Hopper_Speed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Speed'

func (*Hopper_Speed_Call) Return

func (*Hopper_Speed_Call) Run

func (_c *Hopper_Speed_Call) Run(run func()) *Hopper_Speed_Call

type IntReader

type IntReader struct {
	mock.Mock
}

IntReader is an autogenerated mock type for the IntReader type

func NewIntReader

func NewIntReader(t mockConstructorTestingTNewIntReader) *IntReader

NewIntReader creates a new instance of IntReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IntReader) EXPECT

func (_m *IntReader) EXPECT() *IntReader_Expecter

func (*IntReader) GetCouple

func (_m *IntReader) GetCouple() (int, int, error)

GetCouple provides a mock function with given fields:

func (*IntReader) GetFour

func (_m *IntReader) GetFour() (int, int, int, int, error)

GetFour provides a mock function with given fields:

func (*IntReader) GetOne

func (_m *IntReader) GetOne() (int, error)

GetOne provides a mock function with given fields:

type IntReader_Expecter

type IntReader_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntReader_Expecter) GetCouple

GetCouple is a helper method to define mock.On call

func (*IntReader_Expecter) GetFour

GetFour is a helper method to define mock.On call

func (*IntReader_Expecter) GetOne

GetOne is a helper method to define mock.On call

type IntReader_GetCouple_Call

type IntReader_GetCouple_Call struct {
	*mock.Call
}

IntReader_GetCouple_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCouple'

func (*IntReader_GetCouple_Call) Return

func (_c *IntReader_GetCouple_Call) Return(_a0 int, _a1 int, _a2 error) *IntReader_GetCouple_Call

func (*IntReader_GetCouple_Call) Run

type IntReader_GetFour_Call

type IntReader_GetFour_Call struct {
	*mock.Call
}

IntReader_GetFour_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFour'

func (*IntReader_GetFour_Call) Return

func (_c *IntReader_GetFour_Call) Return(_a0 int, _a1 int, _a2 int, _a3 int, _a4 error) *IntReader_GetFour_Call

func (*IntReader_GetFour_Call) Run

func (_c *IntReader_GetFour_Call) Run(run func()) *IntReader_GetFour_Call

type IntReader_GetOne_Call

type IntReader_GetOne_Call struct {
	*mock.Call
}

IntReader_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'

func (*IntReader_GetOne_Call) Return

func (_c *IntReader_GetOne_Call) Return(_a0 int, _a1 error) *IntReader_GetOne_Call

func (*IntReader_GetOne_Call) Run

func (_c *IntReader_GetOne_Call) Run(run func()) *IntReader_GetOne_Call

Jump to

Keyboard shortcuts

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