Documentation ¶
Index ¶
- type BFSExecutor
- type BFSExecutor_BFS_Call
- type BFSExecutor_Expecter
- type GameParser
- type GameParser_Expecter
- type GameParser_SetupGame_Call
- type Grid
- type GridFactory
- type GridFactory_Expecter
- type GridFactory_NewGrid_Call
- type Grid_AddBlocked_Call
- type Grid_Expecter
- func (_e *Grid_Expecter) AddBlocked(p1 interface{}, p2 interface{}) *Grid_AddBlocked_Call
- func (_e *Grid_Expecter) IsFinish(p interface{}) *Grid_IsFinish_Call
- func (_e *Grid_Expecter) IsInbound(p interface{}) *Grid_IsInbound_Call
- func (_e *Grid_Expecter) IsLegalMove(p interface{}) *Grid_IsLegalMove_Call
- type Grid_IsFinish_Call
- type Grid_IsInbound_Call
- type Grid_IsLegalMove_Call
- type Hopper
- type HopperFactory
- type HopperFactory_Expecter
- type HopperFactory_NewHopper_Call
- type Hopper_CurrentMovesNumber_Call
- type Hopper_Expecter
- type Hopper_Position_Call
- type Hopper_PossibleMoves_Call
- type Hopper_Speed_Call
- type IntReader
- type IntReader_Expecter
- type IntReader_GetCouple_Call
- type IntReader_GetFour_Call
- type IntReader_GetOne_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BFSExecutor ¶
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 ¶
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 ¶
func (_e *BFSExecutor_Expecter) BFS() *BFSExecutor_BFS_Call
BFS is a helper method to define mock.On call
type GameParser ¶
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
type GameParser_Expecter ¶
type GameParser_Expecter struct {
// contains filtered or unexported fields
}
func (*GameParser_Expecter) SetupGame ¶
func (_e *GameParser_Expecter) SetupGame() *GameParser_SetupGame_Call
SetupGame is a helper method to define mock.On call
type GameParser_SetupGame_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 (_c *GameParser_SetupGame_Call) Return(_a0 pkg.Grid, _a1 pkg.Hopper, _a2 error) *GameParser_SetupGame_Call
func (*GameParser_SetupGame_Call) Run ¶
func (_c *GameParser_SetupGame_Call) Run(run func()) *GameParser_SetupGame_Call
type Grid ¶
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 ¶
AddBlocked provides a mock function with given fields: p1, p2
func (*Grid) EXPECT ¶
func (_m *Grid) EXPECT() *Grid_Expecter
type GridFactory ¶
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
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 ¶
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 (_c *GridFactory_NewGrid_Call) Return(_a0 pkg.Grid, _a1 error) *GridFactory_NewGrid_Call
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 ¶
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 (_c *Grid_AddBlocked_Call) Return(_a0 error) *Grid_AddBlocked_Call
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 ¶
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 ¶
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 ¶
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 (_c *Grid_IsLegalMove_Call) Return(_a0 bool) *Grid_IsLegalMove_Call
func (*Grid_IsLegalMove_Call) Run ¶
func (_c *Grid_IsLegalMove_Call) Run(run func(p point.Point)) *Grid_IsLegalMove_Call
type Hopper ¶
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 ¶
CurrentMovesNumber provides a mock function with given fields:
func (*Hopper) EXPECT ¶
func (_m *Hopper) EXPECT() *Hopper_Expecter
func (*Hopper) PossibleMoves ¶
PossibleMoves provides a mock function with given fields:
type HopperFactory ¶
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
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 ¶
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 (_c *HopperFactory_NewHopper_Call) Return(_a0 pkg.Hopper) *HopperFactory_NewHopper_Call
func (*HopperFactory_NewHopper_Call) Run ¶
func (_c *HopperFactory_NewHopper_Call) Run(run func(position point.Point)) *HopperFactory_NewHopper_Call
type Hopper_CurrentMovesNumber_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 (_c *Hopper_CurrentMovesNumber_Call) Return(_a0 int) *Hopper_CurrentMovesNumber_Call
func (*Hopper_CurrentMovesNumber_Call) Run ¶
func (_c *Hopper_CurrentMovesNumber_Call) Run(run func()) *Hopper_CurrentMovesNumber_Call
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 ¶
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 (_c *Hopper_Position_Call) Return(_a0 point.Point) *Hopper_Position_Call
func (*Hopper_Position_Call) Run ¶
func (_c *Hopper_Position_Call) Run(run func()) *Hopper_Position_Call
type Hopper_PossibleMoves_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 (_c *Hopper_PossibleMoves_Call) Return(_a0 []pkg.Hopper) *Hopper_PossibleMoves_Call
func (*Hopper_PossibleMoves_Call) Run ¶
func (_c *Hopper_PossibleMoves_Call) Run(run func()) *Hopper_PossibleMoves_Call
type Hopper_Speed_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 (_c *Hopper_Speed_Call) Return(_a0 point.Point) *Hopper_Speed_Call
func (*Hopper_Speed_Call) Run ¶
func (_c *Hopper_Speed_Call) Run(run func()) *Hopper_Speed_Call
type IntReader ¶
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
type IntReader_Expecter ¶
type IntReader_Expecter struct {
// contains filtered or unexported fields
}
func (*IntReader_Expecter) GetCouple ¶
func (_e *IntReader_Expecter) GetCouple() *IntReader_GetCouple_Call
GetCouple is a helper method to define mock.On call
func (*IntReader_Expecter) GetFour ¶
func (_e *IntReader_Expecter) GetFour() *IntReader_GetFour_Call
GetFour is a helper method to define mock.On call
func (*IntReader_Expecter) GetOne ¶
func (_e *IntReader_Expecter) GetOne() *IntReader_GetOne_Call
GetOne is a helper method to define mock.On call
type IntReader_GetCouple_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 ¶
func (_c *IntReader_GetCouple_Call) Run(run func()) *IntReader_GetCouple_Call
type IntReader_GetFour_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 ¶
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