testutils

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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