projecttest

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceTemplate

func ReplaceTemplate(
	tmpl Template,
	gitRepository *gittest.LocalGitRepository,
) error

func WithKubernetes

func WithKubernetes(opts ...kubetest.Option) withKubernetes

Types

type Environment

type Environment struct {
	Log              logr.Logger
	TestRoot         string
	TestProject      string
	LocalTestProject string
	GitRepository    *gittest.LocalGitRepository
}

func InitTestEnvironment

func InitTestEnvironment(t testing.TB, txtarData []byte) Environment

type Option

type Option interface {
	Apply(opts *options)
}

type Template

type Template struct {
	TestProjectPath  string
	RelativeFilePath string
	Data             any
}

type WithProjectSource

type WithProjectSource string

func (WithProjectSource) Apply

func (opt WithProjectSource) Apply(opts *options)

Jump to

Keyboard shortcuts

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