testutils

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPresenterAgainstGoldenImageSnapshot

func AssertPresenterAgainstGoldenImageSnapshot(t *testing.T, pres presenter.Presenter, testImage string, updateSnapshot bool, redactors ...redactor)

func AssertPresenterAgainstGoldenSnapshot

func AssertPresenterAgainstGoldenSnapshot(t *testing.T, pres presenter.Presenter, updateSnapshot bool, redactors ...redactor)

func DirectoryInput

func DirectoryInput(t testing.TB) sbom.SBOM

func ImageInput

func ImageInput(t testing.TB, testImage string, options ...ImageOption) sbom.SBOM

Types

type ImageOption added in v0.29.0

type ImageOption func(cfg *imageCfg)

func FromSnapshot added in v0.29.0

func FromSnapshot() ImageOption

Jump to

Keyboard shortcuts

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