testhelper

package
v3.0.0-beta10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixLogger

func FixLogger() (cancel func())

FixLogger temporarily changes the global log level to Info and increases the caller skip frame count by 1, returning a cancellation function to restore the previous settings.

func InstallFile

func InstallFile(t *testing.T, srcFile, dstFile string)

func Main

func Main(m *testing.M, execute func([]string))

func RunCmd

func RunCmd(t *testing.T, name string, args ...string)

func SetExecutable

func SetExecutable(t *testing.T, head string) string

func TCPPortAvailable

func TCPPortAvailable(port string) error

func Trace

func Trace(t *testing.T)

Types

type Env

type Env struct {
	TestingT    *testing.T
	Root        string
	ClusterName string
}

func Setup

func Setup(t *testing.T) Env

func SetupEnv

func SetupEnv(env Env) Env

func SetupEnvWithoutCreateMandatoryDirectories

func SetupEnvWithoutCreateMandatoryDirectories(env Env) Env

func (Env) InstallFile

func (env Env) InstallFile(srcFile, dstFile string)

Jump to

Keyboard shortcuts

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