Documentation ¶
Index ¶
- func EmptyHeaders() map[string]string
- func RandomDiffUserAnswer() *domain.UserAnswer
- func RandomEqualUserAnswer() *domain.UserAnswer
- func RandomQuizWithQuestions() *domain.Quiz
- func RandomUserAnswers() []*domain.UserAnswer
- func RandomUsersAnswers(username string) *domain.UserAnswers
- type InMemoryDbArranger
- type IntegrationSuite
- func (suite *IntegrationSuite) GivenUserAnswers(answers *domain.UserAnswers)
- func (suite *IntegrationSuite) SetupSuite()
- func (suite *IntegrationSuite) SetupTest()
- func (suite *IntegrationSuite) TearDownSuite()
- func (suite *IntegrationSuite) TearDownTest()
- func (suite *IntegrationSuite) UserResultsShouldExist(userId string)
- func (suite *IntegrationSuite) UserResultsShouldNotExist(userId string)
- type InvalidCommand
- type InvalidQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyHeaders ¶
func RandomDiffUserAnswer ¶
func RandomDiffUserAnswer() *domain.UserAnswer
func RandomEqualUserAnswer ¶
func RandomEqualUserAnswer() *domain.UserAnswer
func RandomQuizWithQuestions ¶
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
Click to show internal directories.
Click to hide internal directories.