imagetest

package
v0.0.0-...-293e5de Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

Image fixture utilities

These are a set of go-utilities for testing to provide on-the-fly images from a docker build, a tar cache dir, or otherwise.

Note: These are NOT meant for use in production, only in go tests.

Documentation

Index

Constants

View Source
const (
	CacheDir    = testutils.TestFixturesDir + string(filepath.Separator) + "cache"
	ImagePrefix = "stereoscope-fixture"
)

Variables

This section is empty.

Functions

func GetFixtureImage

func GetFixtureImage(t testing.TB, source, name string) *image.Image

func GetFixtureImageSIFPath

func GetFixtureImageSIFPath(t testing.TB, name string) string

func GetFixtureImageTarPath

func GetFixtureImageTarPath(t testing.TB, name string) string

func GetGoldenFixtureImage

func GetGoldenFixtureImage(t testing.TB, name string) *image.Image

func LoadFixtureImageIntoDocker

func LoadFixtureImageIntoDocker(t testing.TB, name string) string

func LoadFixtureImageIntoPodman

func LoadFixtureImageIntoPodman(t testing.TB, name string) string

func PrepareFixtureImage

func PrepareFixtureImage(t testing.TB, source, name string) string

func UpdateGoldenFixtureImage

func UpdateGoldenFixtureImage(t testing.TB, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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