tests

package
v1.19.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BestiaryModel = fixtures.BestiaryModel
View Source
var KingdomModel = fixtures.KingdomModel
View Source
var MonsterModel = fixtures.MonsterModel
View Source
var UserModel = fixtures.UserModel

Functions

func SoTimeout

func SoTimeout(t *testing.T, f func() bool, timeout ...<-chan time.Time)

Test helper function to wait for a condition to be true or timeout. It will keep checking the condition every 100 milliseconds until the timeout is reached. If the condition is true, the assertion will pass.

Types

type Bestiary

type Bestiary = fixtures.Bestiary

type Castle

type Castle = fixtures.Castle

type DetailedBestiary added in v1.19.0

type DetailedBestiary = fixtures.DetailedBestiary

type GenericBestiary added in v1.19.0

type GenericBestiary[T any, Y any] = fixtures.GenericBestiary[T, Y]

type Kingdom

type Kingdom = fixtures.Kingdom

type Monster

type Monster = fixtures.Monster

type MonsterWeakness

type MonsterWeakness = fixtures.MonsterWeakness

type User

type User = fixtures.User

Directories

Path Synopsis
Shared models and types for all test suites.
Shared models and types for all test suites.
mocks
Sample data to be used within test suites.
Sample data to be used within test suites.
setup
Initialization and teardown functions for all test suites.
Initialization and teardown functions for all test suites.

Jump to

Keyboard shortcuts

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