testhelpers

package
v0.365.15 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

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) (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

Types

This section is empty.

Jump to

Keyboard shortcuts

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