test

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunProjectTests

func RunProjectTests(ctx context.Context, opts *Opts) (tested, failed int, err error)

RunProjectTests executes container structure tests for all images in a project that match the given filters. Returns the number of tests run and failed.

Types

type Opts

type Opts struct {
	DistPath string
	Project  *model.ContainerHiveProject
	Filters  []build.Filter
	Registry Registry // if set, use registry refs when no local tar exists
	BuildID  string
}

Opts holds configuration for running project tests.

type Registry

type Registry interface {
	ImageRef(imageName, tag, platformStr, buildID string) string
}

Registry provides image references for pulling from a remote registry.

Jump to

Keyboard shortcuts

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