Documentation ¶
Overview ¶
Package apitest contains supporting code for running app layer tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpAppErrors ¶
CmpAppErrors compares two encore error values. If they are not equal, the reason is returned.
Types ¶
type AuthHandler ¶
AuthHandler represents a function that can perform authentication.
type AuthParams ¶
type AuthParams struct {
Authorization string `header:"Authorization"`
}
AuthParams provides access to the authorization header.
type KeyStore ¶
type KeyStore struct{}
KeyStore represents a mock keystore with a hardcoded key.
func (*KeyStore) PrivateKey ¶
PrivateKey implements the auth interface.
type Table ¶
type Table struct { Name string Token string ExpResp any ExcFunc func(ctx context.Context) any CmpFunc func(got any, exp any) string }
Table represent fields needed for running an app test.
Click to show internal directories.
Click to hide internal directories.