Documentation ¶
Index ¶
- Constants
- func AssertContainsFullHTML(t *testing.T, val string)
- func AssertContainsLogin(t *testing.T, val string)
- func AssertContainsPartialHTML(t *testing.T, val string)
- func AssertContainsProfile(t *testing.T, val string)
- func Base64Encoded(t *testing.T, token *oidc.JSONWebToken) string
- func Close(t *testing.T, resp *http.Response)
- func FromJSON[T any](t *testing.T, resp *http.Response) *T
- func HTMXRequest() func(*httpRequest)
- func NewRequest(options ...func(*httpRequest)) *http.Request
- func ToBytes(t *testing.T, resp *http.Response) []byte
- func ToJSON(t *testing.T, v interface{}) []byte
- func ToString(t *testing.T, resp *http.Response) string
- func WithAccept(mimeType string) func(*httpRequest)
- func WithBody(body []byte) func(*httpRequest)
- func WithCookie(cookie *http.Cookie) func(*httpRequest)
- func WithEncryptedCookie(t *testing.T, cookie http.Cookie) func(*httpRequest)
- func WithJSONBody(t *testing.T, v interface{}) func(*httpRequest)
- func WithMethod(m string) func(*httpRequest)
- func WithURL(url string) func(*httpRequest)
- type DatabaseRunner
Constants ¶
View Source
const CookieEncryptionKey = "01234567890123456789012345678901"
Variables ¶
This section is empty.
Functions ¶
func AssertContainsFullHTML ¶
func AssertContainsLogin ¶
func AssertContainsProfile ¶
func Base64Encoded ¶
func Base64Encoded(t *testing.T, token *oidc.JSONWebToken) string
func HTMXRequest ¶
func HTMXRequest() func(*httpRequest)
func NewRequest ¶
func WithAccept ¶
func WithAccept(mimeType string) func(*httpRequest)
func WithCookie ¶
func WithEncryptedCookie ¶
func WithJSONBody ¶
func WithMethod ¶
func WithMethod(m string) func(*httpRequest)
Types ¶
type DatabaseRunner ¶
type DatabaseRunner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner() *DatabaseRunner
func (*DatabaseRunner) Connection ¶
func (r *DatabaseRunner) Connection() *postgres.DBConnection
func (*DatabaseRunner) Run ¶
func (r *DatabaseRunner) Run(t *testing.T, runTests func(t *testing.T))
func (*DatabaseRunner) Start ¶
func (r *DatabaseRunner) Start() (*postgres.DBConnection, error)
func (*DatabaseRunner) Stop ¶
func (r *DatabaseRunner) Stop() error
Click to show internal directories.
Click to hide internal directories.