Documentation ¶
Index ¶
- func CompareTree(a, b *services.GraphNode) bool
- func CreateTempDirWithCallbackAndAssert(t *testing.T) (string, func())
- func PrepareDotGitDir(t *testing.T, sourceDirPath, targetDirPath string) (string, string)
- func RedirectLogOutputToBuffer() (outputBuffer, stderrBuffer *bytes.Buffer, previousLog log.Log)
- func RemovePath(testPath string, t *testing.T)
- func RenamePath(oldPath, newPath string, t *testing.T)
- func SetJfrogHome() (cleanUp func(), err error)
- func ValidateListsIdentical(expected, actual []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareTree ¶ added in v2.10.0
CompareTree returns true iff the two trees contain the same nodes (regardless of their order)
func CreateTempDirWithCallbackAndAssert ¶ added in v2.8.0
func PrepareDotGitDir ¶
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 RedirectLogOutputToBuffer ¶ added in v2.23.0
Set new logger with output redirection to a buffer. Caller is responsible to set the old log back.
func RemovePath ¶
Removing the provided path from the filesystem
func RenamePath ¶
Renaming from old path to new path.
func SetJfrogHome ¶
func SetJfrogHome() (cleanUp func(), err error)
Set HomeDir to desired location. Caller is responsible to set the old home location back.
func ValidateListsIdentical ¶ added in v2.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.