ginkgo

package
v0.30.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDir

func CleanupDir()

func CloseLogErr

func CloseLogErr(c io.Closer)

func EnterNewTempDir

func EnterNewTempDir()

func ExpectBundleErrorToHaveOccurred

func ExpectBundleErrorToHaveOccurred(path, reStr string)

func ExpectFileNotInBundle

func ExpectFileNotInBundle(pathInBundle string)

func GenerateBundle

func GenerateBundle(args ...string)

func GetFileFromBundle

func GetFileFromBundle(pathInBundle string) string

func GetResultFromBundle

func GetResultFromBundle(path string) *types.Result

func GetResultFromBundleErrors

func GetResultFromBundleErrors(path string) *types.Result

func GetResultsFromBundle

func GetResultsFromBundle() []*types.Result

func GetResultsFromBundleErrors

func GetResultsFromBundleErrors() []*types.Result

func GetTempDir

func GetTempDir() string

func LogResultsFromBundle

func LogResultsFromBundle()

func MakeDockerContainer

func MakeDockerContainer(client docker.CommonAPIClient, name string, labels map[string]string, cmd []string) string

MakeDockerContainer makes a docker container to be used in tests, returning the container ID. name and labels are optional

func ReadFile

func ReadFile(filename string) []byte

func ReadFileFromBundle

func ReadFileFromBundle(archivePath, targetFile string) (string, error)

func RemoveDockerContainer

func RemoveDockerContainer(client docker.CommonAPIClient, containerID string)

RemoveDockerContainer removes a docker container by ID as cleanup.

func SetupLogger added in v0.24.0

func SetupLogger()

func WriteBundleConfig

func WriteBundleConfig(config string)

func WriteFile

func WriteFile(path string, contents string)

Types

type ErrFileNotFound

type ErrFileNotFound struct {
	Filename string
}

func (ErrFileNotFound) Error

func (e ErrFileNotFound) Error() string

Jump to

Keyboard shortcuts

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