testutils

package
v0.0.0-...-d27547a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InMemoryPoolPath = "file:testdb?mode=memory&cache=shared"

Functions

func CompareGroups

func CompareGroups(a ced.Group, b ced.Group) bool

func DoRequest

func DoRequest(t testing.TB, method string, url string, body any, expectedStatus int, prepare func(r *http.Request) *http.Request) string

func IsCode

func IsCode(t testing.TB, err error, code string)

func IsCodeAndError

func IsCodeAndError(t testing.TB, err error, code string, msg string)

func IsError

func IsError(t testing.TB, err error, msg string)

func SortSlice

func SortSlice[T any](s []T, comp func(a, b T) bool) []T

func StartPool

func StartPool(tb testing.TB) (*sqlite.Pool, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL