testutils

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSampleFileRelationships added in v2.8.2

func AddSampleFileRelationships(s *sbom.SBOM)

func AssertEncoderAgainstGoldenImageSnapshot

func AssertEncoderAgainstGoldenImageSnapshot(t *testing.T, format sbom.Format, sbom sbom.SBOM, testImage string, updateSnapshot bool, json bool, redactors ...redactor)

func AssertEncoderAgainstGoldenSnapshot

func AssertEncoderAgainstGoldenSnapshot(t *testing.T, format sbom.Format, sbom sbom.SBOM, updateSnapshot bool, json bool, redactors ...redactor)

func DirectoryInput

func DirectoryInput(t testing.TB) sbom.SBOM

func DirectoryInputWithAuthorField added in v2.11.0

func DirectoryInputWithAuthorField(t testing.TB) sbom.SBOM

func ImageInput

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

Types

type ImageOption

type ImageOption func(cfg *imageCfg)

func FromSnapshot

func FromSnapshot() ImageOption

Jump to

Keyboard shortcuts

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