Documentation ¶
Index ¶
- Variables
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func EnsurePrepareEnvOK() error
- func GetExecureDirName() string
- func GetPrepareDirByName(name string) string
- func GetPrepareDirName() string
- func GetPrepareVersionName() string
- func InitExecuteEnv() error
- func InitPrepareDirByName(name string) (string, error)
- func InitPrepareEnv() error
- func InitTestCaseExecuteDir(name string) (string, error)
- func PrepareCaseRegister(prepareCase PrepareCase)
- func ReadPrepareVersion() (int, error)
- func RemoveExecuteDir() (string, error)
- func RemovePrepareDir() (string, error)
- func TestCaseRegister(testCase TestCase)
- type PrepareCase
- type TestCase
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 EnsurePrepareEnvOK ¶
func EnsurePrepareEnvOK() error
func GetExecureDirName ¶
func GetExecureDirName() string
func GetPrepareDirByName ¶
func GetPrepareDirName ¶
func GetPrepareDirName() string
func GetPrepareVersionName ¶
func GetPrepareVersionName() string
func InitExecuteEnv ¶
func InitExecuteEnv() error
func InitPrepareDirByName ¶
func InitPrepareEnv ¶
func InitPrepareEnv() error
func InitTestCaseExecuteDir ¶
func PrepareCaseRegister ¶
func PrepareCaseRegister(prepareCase PrepareCase)
func ReadPrepareVersion ¶
func RemoveExecuteDir ¶
func RemovePrepareDir ¶
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
type TestCase ¶
type TestCase struct {
// contains filtered or unexported fields
}
func MakeTestCase ¶
Click to show internal directories.
Click to hide internal directories.