testsupport

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscordClientID string = "discord_test_client_id"
)

Variables

View Source
var (
	ServerPort         int
	BaseURL            string
	DatabaseDSN        string
	SetupStoreLocation string

	HS256Key []byte
)

Functions

func AssertGoldenFile added in v0.8.4

func AssertGoldenFile(t *testing.T, testCaseName string, output []byte) error

func Bootstrap

func Bootstrap(ctx context.Context) error

func GenerateUserToken

func GenerateUserToken(user *entities.User, expiresAt time.Time) (string, error)

func GoldenFileName added in v0.8.4

func GoldenFileName(t *testing.T, testCaseName string) string

func RemoveUUIDs added in v0.8.4

func RemoveUUIDs(data string) string

func Teardown

func Teardown() error

Types

type ExpectedValidationError added in v0.9.0

type ExpectedValidationError struct {
	Field string
	Msg   string
	Value interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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