testutil

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist string = lo.Ternary(runtime.GOOS == "windows",
	"The system cannot find the file specified.",
	"no such file or directory")

Functions

func AssertDefsecEqual added in v0.50.0

func AssertDefsecEqual(t *testing.T, expected, actual interface{})

func AssertRuleFound added in v0.50.0

func AssertRuleFound(t *testing.T, ruleID string, results scan.Results, message string, args ...interface{})

func AssertRuleNotFound added in v0.50.0

func AssertRuleNotFound(t *testing.T, ruleID string, results scan.Results, message string, args ...interface{})

func CreateFS added in v0.50.0

func CreateFS(t *testing.T, files map[string]string) fs.FS

func DecompressGzip

func DecompressGzip(t *testing.T, src, dst string)

func DecompressSparseGzip added in v0.43.0

func DecompressSparseGzip(t *testing.T, src, dst string)

DecompressSparseGzip decompresses a sparse gzip file for virtual machine image.

func SetupLocalStack added in v0.50.0

func SetupLocalStack(ctx context.Context, version string) (*localstack.LocalStackContainer, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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