mocks

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	mock.Mock
}

Interface is an autogenerated mock type for the Interface type

func NewInterface

func NewInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *Interface

NewInterface creates a new instance of Interface. 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 (*Interface) AddPlayer

func (_m *Interface) AddPlayer(player *models.Player)

AddPlayer provides a mock function with given fields: player

func (*Interface) ConcludeRound

func (_m *Interface) ConcludeRound(winners []showdown.WinnerInfo, publicPlayers []models.PublicPlayer) []*money.Money

ConcludeRound provides a mock function with given fields: winners, publicPlayers

func (*Interface) GetMaxBet

func (_m *Interface) GetMaxBet() *money.Money

GetMaxBet provides a mock function with given fields:

func (*Interface) GetPlayerBet

func (_m *Interface) GetPlayerBet(id string) *money.Money

GetPlayerBet provides a mock function with given fields: id

func (*Interface) GetPlayerWallet

func (_m *Interface) GetPlayerWallet(id string) *money.Money

GetPlayerWallet provides a mock function with given fields: id

func (*Interface) GetPot

func (_m *Interface) GetPot() *money.Money

GetPot provides a mock function with given fields:

func (*Interface) HasZeroWallet

func (_m *Interface) HasZeroWallet(id string) bool

HasZeroWallet provides a mock function with given fields: id

func (*Interface) IsAllIn

func (_m *Interface) IsAllIn(id string) bool

IsAllIn provides a mock function with given fields: id

func (*Interface) MustAllIn

func (_m *Interface) MustAllIn(id string) (bool, error)

MustAllIn provides a mock function with given fields: id

func (*Interface) PerformAllIn

func (_m *Interface) PerformAllIn(id string) (bool, error)

PerformAllIn provides a mock function with given fields: id

func (*Interface) PerformBet

func (_m *Interface) PerformBet(id string) error

PerformBet provides a mock function with given fields: id

func (*Interface) PerformBlind

func (_m *Interface) PerformBlind(id string, amount *money.Money) error

PerformBlind provides a mock function with given fields: id, amount

func (*Interface) PerformRaise

func (_m *Interface) PerformRaise(id string, amount *money.Money) (int, error)

PerformRaise provides a mock function with given fields: id, amount

func (*Interface) RegisterLobby

func (_m *Interface) RegisterLobby(_a0 string)

RegisterLobby provides a mock function with given fields: _a0

func (*Interface) RemovePlayer

func (_m *Interface) RemovePlayer(id string) error

RemovePlayer provides a mock function with given fields: id

func (*Interface) UpdatePublicPlayerBuyIn

func (_m *Interface) UpdatePublicPlayerBuyIn(p []models.PublicPlayer)

UpdatePublicPlayerBuyIn provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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