Documentation ¶
Index ¶
- func ChangeDirAndAssert(t *testing.T, dirPath string)
- func ChangeDirWithCallback(t *testing.T, wd, dirPath string) func()
- func ExcludeTestsPackage(packages []string, packageToExclude string) []string
- func GetTestPackages(searchPattern string) []string
- func InitVcsSubmoduleTestDir(t *testing.T, srcPath, tmpDir string) (submodulePath string)
- func RemoveAllAndAssert(t *testing.T, path string)
- func RemoveAndAssert(t *testing.T, path string)
- func RunTests(testsPackages []string, hideUnitTestsLog bool) error
- func SetEnvAndAssert(t *testing.T, key, value string)
- func SetEnvWithCallbackAndAssert(t *testing.T, key, value string) func()
- func StartHttpServer(handlers HttpServerHandlers) (int, error)
- func UnSetEnvAndAssert(t *testing.T, key string)
- type HttpServerHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDirAndAssert ¶ added in v1.7.0
func ChangeDirWithCallback ¶ added in v1.7.0
ChangeDirWithCallback changes working directory to the given path and return function that change working directory back to the original path.
func ExcludeTestsPackage ¶
func GetTestPackages ¶
func InitVcsSubmoduleTestDir ¶ added in v0.20.1
func RemoveAllAndAssert ¶ added in v1.7.0
func RemoveAndAssert ¶ added in v1.7.0
func SetEnvAndAssert ¶ added in v1.7.0
func SetEnvWithCallbackAndAssert ¶ added in v1.7.0
func StartHttpServer ¶
func StartHttpServer(handlers HttpServerHandlers) (int, error)
func UnSetEnvAndAssert ¶ added in v1.7.0
Types ¶
type HttpServerHandlers ¶
type HttpServerHandlers map[string]func(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.