tests

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const JfrogTestsHome = ".jfrogTest"

Variables

This section is empty.

Functions

func CleanUnitTestsJfrogHome added in v1.0.0

func CleanUnitTestsJfrogHome()

func PrepareDotGitDir

func PrepareDotGitDir(t *testing.T, sourceDirPath, targetDirPath string) (string, string)

Prepare the .git environment for the test. Takes an existing folder and making it .git dir. sourceDirPath - Relative path to the source dir to change to .git targetDirPath - Relative path to the target created .git dir, usually 'testdata' under the parent dir.

func RemovePath

func RemovePath(testPath string, t *testing.T)

Removing the provided path from the filesystem

func RenamePath

func RenamePath(oldPath, newPath string, t *testing.T)

Renaming from old path to new path.

func SetJfrogHome added in v1.0.0

func SetJfrogHome() (oldHome string, err error)

Set HomeDir to desired location. Caller is responsible to set the old home location back.

Types

This section is empty.

Jump to

Keyboard shortcuts

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