Documentation ¶
Index ¶
- func AddQuery(req *http.Request, query ...string)
- func Authenticated(t testing.TB, req *http.Request, pool *pgxpool.Pool, ...) (uuid.UUID, string, time.Time, time.Time)
- func CreateAccount(t testing.TB, pool *pgxpool.Pool, id uuid.UUID, creationTime time.Time)
- func CreateAccountAndFederation(t testing.TB, pool *pgxpool.Pool, accountId uuid.UUID, ...)
- func CreateAccountFederation(t testing.TB, pool *pgxpool.Pool, accountId uuid.UUID, ...)
- func CreateGw2Account(t testing.TB, pool *pgxpool.Pool, accountId, gw2AccountId uuid.UUID, ...)
- func CreateGw2AccountVerification(t testing.TB, pool *pgxpool.Pool, accountId, gw2AccountId uuid.UUID)
- func CreateGw2ApiToken(t testing.TB, pool *pgxpool.Pool, accountId, gw2AccountId uuid.UUID, ...)
- func CreateSession(t testing.TB, pool *pgxpool.Pool, sessionId, issuer, idAtIssuer string, ...)
- func MustExec(t testing.TB, pool *pgxpool.Pool, sql string, args ...any)
- func MustExist(t testing.TB, pool *pgxpool.Pool, sql string, args ...any) bool
- func MustNotExist(t testing.TB, pool *pgxpool.Pool, sql string, args ...any) bool
- func MustUnauthorized(t testing.TB, h http.Handler, req *http.Request) bool
- func NewGw2ApiClient(handler http.Handler) (*httptest.Server, *gw2.ApiClient)
- func NewRandomConverter(t testing.TB) *service.SessionJwtConverter
- func NewUUID(t testing.TB) uuid.UUID
- func RunAll(t *testing.T, scope *Scope, tests map[string]map[string]Fn)
- func WithGw2ApiClient(handler http.Handler, fn func(gw2ApiClient *gw2.ApiClient) error) error
- func WithScope(fn func(scope *Scope))
- type Fn
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticated ¶
func CreateAccount ¶
func CreateAccountFederation ¶
func CreateGw2Account ¶
func CreateGw2ApiToken ¶
func CreateSession ¶
func MustNotExist ¶
func NewGw2ApiClient ¶
func NewRandomConverter ¶
func NewRandomConverter(t testing.TB) *service.SessionJwtConverter
func WithGw2ApiClient ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.