compatibility

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrepareCases map[string]PrepareCase
View Source
var (
	PrepareDir = "prepare"
)
View Source
var TestCases map[string]TestCase

Functions

func CopyDir

func CopyDir(src, dst string) error

func CopyFile

func CopyFile(src, dst string) error

Copy file from src to dst

func EnsurePrepareEnvOK

func EnsurePrepareEnvOK() error

func GetExecureDirName

func GetExecureDirName() string

func GetPrepareDirByName

func GetPrepareDirByName(name string) string

func GetPrepareDirName

func GetPrepareDirName() string

func GetPrepareVersionName

func GetPrepareVersionName() string

func InitExecuteEnv

func InitExecuteEnv() error

func InitPrepareDirByName

func InitPrepareDirByName(name string) (string, error)

func InitPrepareEnv

func InitPrepareEnv() error

func InitTestCaseExecuteDir

func InitTestCaseExecuteDir(name string) (string, error)

func PrepareCaseRegister

func PrepareCaseRegister(prepareCase PrepareCase)

func ReadPrepareVersion

func ReadPrepareVersion() (int, error)

func RemoveExecuteDir

func RemoveExecuteDir() (string, error)

func RemovePrepareDir

func RemovePrepareDir() (string, error)

func TestCaseRegister

func TestCaseRegister(testCase TestCase)

Types

type PrepareCase

type PrepareCase struct {
	// contains filtered or unexported fields
}

func GetPrepareCase

func GetPrepareCase(name string) PrepareCase

func MakePrepareCase

func MakePrepareCase(
	prepareFn func(tc PrepareCase, t *testing.T),
	name string,
	desc string,
	schemaCfg schemaCfg,
	batchSize int,
	optType optType,
) PrepareCase

func (PrepareCase) GetBatch

func (pc PrepareCase) GetBatch(t *testing.T) *containers.Batch

func (PrepareCase) GetEngine

func (pc PrepareCase) GetEngine(t *testing.T) *testutil.TestEngine

func (PrepareCase) GetOptions

func (pc PrepareCase) GetOptions(t *testing.T) *options.Options

func (PrepareCase) GetSchema

func (pc PrepareCase) GetSchema(t *testing.T) *catalog.Schema

type TestCase

type TestCase struct {
	// contains filtered or unexported fields
}

func MakeTestCase

func MakeTestCase(
	testFn func(tc TestCase, t *testing.T),
	dependsOn string,
	name string,
	desc string,
) TestCase

func (TestCase) GetEngine

func (tc TestCase) GetEngine(t *testing.T) *testutil.TestEngine

Jump to

Keyboard shortcuts

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