Documentation ¶
Index ¶
- type Interface
- func (_m *Interface) AddPlayer(player *models.Player)
- func (_m *Interface) ConcludeRound(winners []showdown.WinnerInfo, publicPlayers []models.PublicPlayer) []*money.Money
- func (_m *Interface) GetMaxBet() *money.Money
- func (_m *Interface) GetPlayerBet(id string) *money.Money
- func (_m *Interface) GetPlayerWallet(id string) *money.Money
- func (_m *Interface) GetPot() *money.Money
- func (_m *Interface) HasZeroWallet(id string) bool
- func (_m *Interface) IsAllIn(id string) bool
- func (_m *Interface) MustAllIn(id string) (bool, error)
- func (_m *Interface) PerformAllIn(id string) (bool, error)
- func (_m *Interface) PerformBet(id string) error
- func (_m *Interface) PerformBlind(id string, amount *money.Money) error
- func (_m *Interface) PerformRaise(id string, amount *money.Money) (int, error)
- func (_m *Interface) RegisterLobby(_a0 string)
- func (_m *Interface) RemovePlayer(id string) error
- func (_m *Interface) UpdatePublicPlayerBuyIn(p []models.PublicPlayer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
Interface is an autogenerated mock type for the Interface type
func NewInterface ¶
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) 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) GetPlayerBet ¶
GetPlayerBet provides a mock function with given fields: id
func (*Interface) GetPlayerWallet ¶
GetPlayerWallet provides a mock function with given fields: id
func (*Interface) HasZeroWallet ¶
HasZeroWallet provides a mock function with given fields: id
func (*Interface) PerformAllIn ¶
PerformAllIn provides a mock function with given fields: id
func (*Interface) PerformBet ¶
PerformBet provides a mock function with given fields: id
func (*Interface) PerformBlind ¶
PerformBlind provides a mock function with given fields: id, amount
func (*Interface) PerformRaise ¶
PerformRaise provides a mock function with given fields: id, amount
func (*Interface) RegisterLobby ¶
RegisterLobby provides a mock function with given fields: _a0
func (*Interface) RemovePlayer ¶
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