testutils

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PGHost     = "localhost"
	PGUsername = "test_user"
	PGPassword = "test_pass"
	PGName     = "test_db"
)

Variables

This section is empty.

Functions

func AreSlicesEqualIgnoringOrder added in v0.7.7

func AreSlicesEqualIgnoringOrder[T any](s1, s2 []T, compare func(l, r T) int) bool

func AssertEqualProto

func AssertEqualProto(t *testing.T, expected, actual proto.Message)

func Marshal added in v0.6.0

func Marshal(t *testing.T, v interface{}) []byte

func RunMigrations added in v0.6.0

func RunMigrations(t *testing.T, db *sql.DB) error

func RunMigrationsWithClient added in v0.6.0

func RunMigrationsWithClient(t *testing.T, pgClient *postgres.Client) error

func RunTestPG added in v0.6.0

func RunTestPG(t *testing.T, logger log.Logger) (int, error)

Types

type ArgMatcher added in v0.6.0

type ArgMatcher interface{ Matches(interface{}) bool }

func OfTypeContext added in v0.6.0

func OfTypeContext() ArgMatcher

Jump to

Keyboard shortcuts

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