test

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Corpus

type Corpus struct {
	// contains filtered or unexported fields
}

func NewCorpus

func NewCorpus(path string) *Corpus

NewCorpus returns a new Corpus. The path specifies the location of the "test" directory.

func (*Corpus) Image

func (c *Corpus) Image(tb testing.TB, name string) v1.Image

Image returns a v1.Image corresponding to the OCI Image Layout with the specified name in the corpus.

func (*Corpus) ImageIndex

func (c *Corpus) ImageIndex(tb testing.TB, name string) v1.ImageIndex

ImageIndex returns a v1.ImageIndex corresponding to the OCI Image Layout with the specified name in the corpus.

func (*Corpus) ImagePath

func (c *Corpus) ImagePath(name string) string

ImagePath returns the path to the image in the corpus with the specified name.

func (*Corpus) OCILayout

func (c *Corpus) OCILayout(tb testing.TB, name string) string

OCILayout returns a temporary OCI Image Layout for the test to use, populated from the OCI Image Layout with the specified name in the corpus. The directory is automatically removed when the test and all its subtests complete.

func (*Corpus) SIF

func (c *Corpus) SIF(tb testing.TB, name string, opt ...sif.WriteOpt) string

SIF returns a temporary SIF for the test to use, populated from the OCI Image Layout with the specified name in the corpus. The SIF is automatically removed when the test and all its subtests complete.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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