tests

package
v0.0.0-...-abd2ee0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientX

func ClientX(hub *comms.Hub) *comms.Client

func NewClient

func NewClient(t *testing.T, hub *comms.Hub) *comms.Client

func RunningHub

func RunningHub(t *testing.T) *comms.Hub

func RunningHubWithClients

func RunningHubWithClients(t *testing.T, n int) *comms.Hub

func Setup

func Setup(t *testing.T) func(t *testing.T)

func TestAnswer

func TestAnswer(questionId string, answer []string) models.Answer

func TestBeginMessage

func TestBeginMessage(player models.Player) models.WebsocketMessage

func TestGame

func TestGame() models.Game

func TestIndex

func TestIndex() models.Index

func TestIndexes

func TestIndexes(count int) []models.Index

func TestMessage

func TestMessage(action actions.Action, content string) models.WebsocketMessage

func TestNewQuestion

func TestNewQuestion() models.NewQuestion

func TestPlayer

func TestPlayer() models.Player

func TestQuestion

func TestQuestion(tag string, question models.NewQuestion) models.Question

func TestRandomString

func TestRandomString() string

func TestSnapshot

func TestSnapshot(quizId string) models.Snapshot

func TestSpecs

func TestSpecs() models.Specs

func TestSubscriber

func TestSubscriber() models.Subscriber

func TestTeam

func TestTeam(quizId string) models.Team

func TestTeams

func TestTeams(quizId string, count int) []models.Team

Types

This section is empty.

Jump to

Keyboard shortcuts

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