Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
Player is an autogenerated mock type for the Player type
func NewPlayer ¶
func NewPlayer(t mockConstructorTestingTNewPlayer) *Player
NewPlayer creates a new instance of Player. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Player) EXPECT ¶
func (_m *Player) EXPECT() *Player_Expecter
type Player_Expecter ¶
type Player_Expecter struct {
// contains filtered or unexported fields
}
func (*Player_Expecter) GetPlayer ¶
func (_e *Player_Expecter) GetPlayer(ctx interface{}, token interface{}) *Player_GetPlayer_Call
GetPlayer is a helper method to define mock.On call
- ctx context.Context
- token string
func (*Player_Expecter) SetPlayer ¶
func (_e *Player_Expecter) SetPlayer(ctx interface{}, token interface{}, p interface{}) *Player_SetPlayer_Call
SetPlayer is a helper method to define mock.On call
- ctx context.Context
- token string
- p *gamesvc.Player
type Player_GetPlayer_Call ¶
Player_GetPlayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPlayer'
func (*Player_GetPlayer_Call) Return ¶
func (_c *Player_GetPlayer_Call) Return(_a0 *gamesvc.Player, _a1 error) *Player_GetPlayer_Call
func (*Player_GetPlayer_Call) Run ¶
func (_c *Player_GetPlayer_Call) Run(run func(ctx context.Context, token string)) *Player_GetPlayer_Call
type Player_SetPlayer_Call ¶
Player_SetPlayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPlayer'
func (*Player_SetPlayer_Call) Return ¶
func (_c *Player_SetPlayer_Call) Return(_a0 error) *Player_SetPlayer_Call
func (*Player_SetPlayer_Call) Run ¶
func (_c *Player_SetPlayer_Call) Run(run func(ctx context.Context, token string, p *gamesvc.Player)) *Player_SetPlayer_Call
Click to show internal directories.
Click to hide internal directories.