testhelpers

package
v0.386.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceId = "71f835dc7ac2750bed2135c7b30dc7fe"
	SpanId  = "b4c9e2a6a0d84702"
)

Variables

This section is empty.

Functions

func DbNameForTestName

func DbNameForTestName(testName string) string

func GetEmbeddedPrivateKey

func GetEmbeddedPrivateKey() (*rsa.PrivateKey, error)

func NpmInstall

func NpmInstall(dir string) (string, error)

func SetupDatabaseForTestCase

func SetupDatabaseForTestCase(ctx context.Context, dbConnInfo *db.ConnectionInfo, schema *proto.Schema, dbName string, resetDatabase bool) (db.Database, error)

func WithTmpDir

func WithTmpDir(dir string) (string, error)

WithTmpDir copies the contents of the src dir to a new temporary directory, returning the tmp dir path

func WithTracing added in v0.369.1

func WithTracing(ctx context.Context) (context.Context, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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