Documentation ¶
Index ¶
- func ClientX(hub *comms.Hub) *comms.Client
- func NewClient(t *testing.T, hub *comms.Hub) *comms.Client
- func RunningHub(t *testing.T) *comms.Hub
- func RunningHubWithClients(t *testing.T, n int) *comms.Hub
- func Setup(t *testing.T) func(t *testing.T)
- func TestAnswer(questionId string, answer []string) models.Answer
- func TestBeginMessage(player models.Player) models.WebsocketMessage
- func TestGame() models.Game
- func TestIndex() models.Index
- func TestIndexes(count int) []models.Index
- func TestMessage(action actions.Action, content string) models.WebsocketMessage
- func TestNewQuestion() models.NewQuestion
- func TestPlayer() models.Player
- func TestQuestion(tag string, question models.NewQuestion) models.Question
- func TestRandomString() string
- func TestSnapshot(quizId string) models.Snapshot
- func TestSpecs() models.Specs
- func TestSubscriber() models.Subscriber
- func TestTeam(quizId string) models.Team
- func TestTeams(quizId string, count int) []models.Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestBeginMessage ¶
func TestBeginMessage(player models.Player) models.WebsocketMessage
func TestIndexes ¶
func TestMessage ¶
func TestMessage(action actions.Action, content string) models.WebsocketMessage
func TestNewQuestion ¶
func TestNewQuestion() models.NewQuestion
func TestPlayer ¶
func TestQuestion ¶
func TestQuestion(tag string, question models.NewQuestion) models.Question
func TestRandomString ¶
func TestRandomString() string
func TestSnapshot ¶
func TestSubscriber ¶
func TestSubscriber() models.Subscriber
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.