test

package
v0.0.0-...-8ec9037 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyHeaders

func EmptyHeaders() map[string]string

func RandomDiffUserAnswer

func RandomDiffUserAnswer() *domain.UserAnswer

func RandomEqualUserAnswer

func RandomEqualUserAnswer() *domain.UserAnswer

func RandomQuizWithQuestions

func RandomQuizWithQuestions() *domain.Quiz

func RandomUserAnswers

func RandomUserAnswers() []*domain.UserAnswer

func RandomUsersAnswers

func RandomUsersAnswers(username string) *domain.UserAnswers

Types

type InMemoryDbArranger

type InMemoryDbArranger struct {
	// contains filtered or unexported fields
}

func NewInMemoryDbArranger

func NewInMemoryDbArranger(di *di.FTQuizDI) *InMemoryDbArranger

func (*InMemoryDbArranger) Arrange

func (db *InMemoryDbArranger) Arrange(_ context.Context)

type IntegrationSuite

type IntegrationSuite struct {
	suite.Suite
	Ctx        context.Context
	DI         *di.FTQuizDI
	DbArranger *InMemoryDbArranger
}

func (*IntegrationSuite) GivenUserAnswers

func (suite *IntegrationSuite) GivenUserAnswers(answers *domain.UserAnswers)

func (*IntegrationSuite) SetupSuite

func (suite *IntegrationSuite) SetupSuite()

func (*IntegrationSuite) SetupTest

func (suite *IntegrationSuite) SetupTest()

func (*IntegrationSuite) TearDownSuite

func (suite *IntegrationSuite) TearDownSuite()

func (*IntegrationSuite) TearDownTest

func (suite *IntegrationSuite) TearDownTest()

func (*IntegrationSuite) UserResultsShouldExist

func (suite *IntegrationSuite) UserResultsShouldExist(userId string)

func (*IntegrationSuite) UserResultsShouldNotExist

func (suite *IntegrationSuite) UserResultsShouldNotExist(userId string)

type InvalidCommand

type InvalidCommand struct {
}

func (InvalidCommand) Id

func (i InvalidCommand) Id() string

type InvalidQuery

type InvalidQuery struct {
}

func (InvalidQuery) Id

func (i InvalidQuery) Id() string

Jump to

Keyboard shortcuts

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