Documentation ¶
Overview ¶
Package testutils provides test helpers.
Index ¶
- func AssertRedirect(t *testing.T, w *httptest.ResponseRecorder, path string)
- func AttrMap(node *html.Node) map[string]string
- func NewRenderer(t *testing.T) otfhtml.Renderer
- func NewSecret(t *testing.T) []byte
- func ReadFile(t *testing.T, path string) []byte
- func SkipIfEnvUnspecified(t *testing.T, env string)
- func Wait[T any](t *testing.T, c <-chan pubsub.Event[T], cond func(pubsub.Event[T]) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertRedirect ¶
func AssertRedirect(t *testing.T, w *httptest.ResponseRecorder, path string)
func NewSecret ¶
NewSecret produces a cryptographically random 16-byte key, intended for use with aes-128 in tests.
func SkipIfEnvUnspecified ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.