testutil

package
v0.83.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePostgresTestContainer added in v0.36.0

func CreatePostgresTestContainer() (func(), string, error)

CreatePostgresTestContainer creates a new PostgreSQL container for testing.

func CreateRedisTestContainer added in v0.43.1

func CreateRedisTestContainer() (func(), string, error)

CreateRedisTestContainer creates a new Redis container for testing.

func EqualComparesAllFields added in v0.83.0

func EqualComparesAllFields[T any](t *testing.T, equal func(a, b *T) bool, ignored ...string)

EqualComparesAllFields sets one exported field of T at a time on one of two zero values and fails if equal still reports them equal. Fields in ignored must keep equal reporting true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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