Documentation ¶
Index ¶
- func AllCasingPermutations(word string) []string
- func NewMockDependencies() *integrations.Integrations
- func RootConn(dbSettings config.DatabaseSettings)
- func SampleStudentFactory() (models.User, string)
- func SampleStudentJSONFactory(sampleStudent models.User, rawPassword string) *map[string]interface{}
- func StringToPointer(s string) *string
- type ErrorWithTester
- type ExistingAppAssert
- func (eaa ExistingAppAssert) Close()
- func (existingAppAssert ExistingAppAssert) TestOnError(request TestRequest, expectedError errors.Error) ExistingAppAssert
- func (existingAppAssert ExistingAppAssert) TestOnErrorAndTester(request TestRequest, errorWithTester ErrorWithTester) ExistingAppAssert
- func (existingAppAssert ExistingAppAssert) TestOnMessage(request TestRequest, status int, message string) ExistingAppAssert
- func (existingAppAssert ExistingAppAssert) TestOnMessageAndTester(request TestRequest, status int, message string, tester Tester) ExistingAppAssert
- func (existingAppAssert ExistingAppAssert) TestOnStatus(request TestRequest, status int) ExistingAppAssert
- func (existingAppAssert ExistingAppAssert) TestOnStatusAndTester(request TestRequest, testerStatus TesterWithStatus) ExistingAppAssert
- type TestApp
- type TestAppConfigurator
- type TestRequest
- type TestUser
- type Tester
- type TesterWithStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllCasingPermutations ¶
func NewMockDependencies ¶
func NewMockDependencies() *integrations.Integrations
func RootConn ¶
func RootConn(dbSettings config.DatabaseSettings)
func SampleStudentFactory ¶
func StringToPointer ¶
Types ¶
type ErrorWithTester ¶
type ExistingAppAssert ¶
type ExistingAppAssert struct { App TestApp Assert *assert.A }
func InitTest ¶
func InitTest(t *testing.T, configurators ...TestAppConfigurator) ExistingAppAssert
func (ExistingAppAssert) Close ¶
func (eaa ExistingAppAssert) Close()
func (ExistingAppAssert) TestOnError ¶
func (existingAppAssert ExistingAppAssert) TestOnError(request TestRequest, expectedError errors.Error) ExistingAppAssert
func (ExistingAppAssert) TestOnErrorAndTester ¶
func (existingAppAssert ExistingAppAssert) TestOnErrorAndTester(request TestRequest, errorWithTester ErrorWithTester) ExistingAppAssert
func (ExistingAppAssert) TestOnMessage ¶
func (existingAppAssert ExistingAppAssert) TestOnMessage(request TestRequest, status int, message string) ExistingAppAssert
func (ExistingAppAssert) TestOnMessageAndTester ¶
func (existingAppAssert ExistingAppAssert) TestOnMessageAndTester(request TestRequest, status int, message string, tester Tester) ExistingAppAssert
func (ExistingAppAssert) TestOnStatus ¶
func (existingAppAssert ExistingAppAssert) TestOnStatus(request TestRequest, status int) ExistingAppAssert
func (ExistingAppAssert) TestOnStatusAndTester ¶
func (existingAppAssert ExistingAppAssert) TestOnStatusAndTester(request TestRequest, testerStatus TesterWithStatus) ExistingAppAssert
type TestApp ¶
type TestAppConfigurator ¶
type TestAppConfigurator func(*TestApp)
func WithScrapedData ¶
func WithScrapedData() TestAppConfigurator
type TestRequest ¶
type Tester ¶
type Tester func(eaa ExistingAppAssert, resp *http.Response)
type TesterWithStatus ¶
Click to show internal directories.
Click to hide internal directories.