Documentation ¶
Index ¶
- func CreateFolderIfNotExists(path string) error
- func DoesPathExist(path string) bool
- func DownloadFile(dst, src string) error
- func DownloadFileIfNotExists(dst, src string) error
- func IsInSlice(slice []string, val string) bool
- func SkipNetworkBasedTests(t *testing.T)
- func StrToUInt(num string) (uint, error)
- func WantTo(question string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFolderIfNotExists ¶ added in v0.20.0
CreateFolderIfNotExists creates a folder at the given path if it doesn't already exist.
func DoesPathExist ¶ added in v0.15.0
DoesPathExist checks if a given path exists in the filesystem.
func DownloadFile ¶ added in v0.20.0
DownloadFile downloads a file from an url to the local fs.
func DownloadFileIfNotExists ¶ added in v0.20.0
DownloadFileIfNotExists runs downloadFile() if the destination file doesn't already exist.
func IsInSlice ¶ added in v0.18.0
IsInSlice returns true if a given string is found in the given slice and false if not.
func SkipNetworkBasedTests ¶ added in v0.19.0
SkipNetworkBasedTests skips network/internet dependent tests when the env variable PROJI_SKIP_NETWORK_TESTS is set to 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.