mocks

package
v0.0.0-...-3e4fb85 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 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 Player

type Player struct {
	mock.Mock
}

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

func (*Player) GetPlayer

func (_m *Player) GetPlayer(ctx context.Context, token string) (*gamesvc.Player, error)

GetPlayer provides a mock function with given fields: ctx, token

func (*Player) SetPlayer

func (_m *Player) SetPlayer(ctx context.Context, token string, p *gamesvc.Player) error

SetPlayer provides a mock function with given fields: ctx, token, p

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

type Player_GetPlayer_Call struct {
	*mock.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 (*Player_GetPlayer_Call) Run

func (_c *Player_GetPlayer_Call) Run(run func(ctx context.Context, token string)) *Player_GetPlayer_Call

type Player_SetPlayer_Call

type Player_SetPlayer_Call struct {
	*mock.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 (*Player_SetPlayer_Call) Run

func (_c *Player_SetPlayer_Call) Run(run func(ctx context.Context, token string, p *gamesvc.Player)) *Player_SetPlayer_Call

Jump to

Keyboard shortcuts

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