Documentation ¶
Index ¶
- func AssertContains(t *testing.T, slice []string, elements ...string)
- func AssertEq(t *testing.T, actual, expected interface{})
- func AssertError(t *testing.T, actual error, expected string)
- func AssertJSONEq(t *testing.T, expected, actual string)
- func AssertMatch(t *testing.T, actual string, expected string)
- func AssertNil(t *testing.T, actual interface{})
- func AssertSameInstance(t *testing.T, actual, expected interface{})
- func AssertStringContains(t *testing.T, str string, expected string)
- func AssertUIDGID(t *testing.T, path string, uid, gid int)
- func ComputeSHA256ForFile(t *testing.T, path string) string
- func ComputeSHA256ForPath(t *testing.T, path string, uid int, guid int) string
- func CreateSingleFileTar(path, txt string) (io.Reader, error)
- func DockerCli(t *testing.T) *dockercli.Client
- func Eventually(t *testing.T, test func() bool, every time.Duration, timeout time.Duration)
- func HTTPGetE(url string) (string, error)
- func ImageID(t *testing.T, repoName string) string
- func PullImage(dockerCli *dockercli.Client, ref string) error
- func RandString(n int) string
- func RandomLayer(t *testing.T, tmpDir string) (path string, sha string, contents []byte)
- func RecursiveCopy(t *testing.T, src, dst string)
- func Run(t *testing.T, cmd *exec.Cmd) string
- func RunE(cmd *exec.Cmd) (string, error)
- type DockerRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertJSONEq ¶ added in v0.4.0
func AssertSameInstance ¶ added in v0.5.0
Assert the simplistic pointer (or literal value) equality
func AssertStringContains ¶ added in v0.3.0
func ComputeSHA256ForPath ¶
func Eventually ¶
func RandString ¶
func RandomLayer ¶ added in v0.2.0
func RecursiveCopy ¶
Types ¶
type DockerRegistry ¶
func NewDockerRegistry ¶
func NewDockerRegistry() *DockerRegistry
func (*DockerRegistry) Start ¶
func (registry *DockerRegistry) Start(t *testing.T)
func (*DockerRegistry) Stop ¶
func (registry *DockerRegistry) Stop(t *testing.T)
Click to show internal directories.
Click to hide internal directories.