util

package
v0.21.0 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil holds code that may be useful for any of the e2e subpackages (including e2e itself). It is useful to avoid import loops between the various e2e test pacakges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewOpt

type NewOpt func(subject []string, modifiers ...option.Modifier) (*option.Option, error)

NewOpt is a helper to make it easier for functions to accept wrapped option creators.

func WrappedOption

func WrappedOption(prefix []string, wModifiers ...option.Modifier) NewOpt

WrappedOption allows injection of new prefixed option creator function into tests. This is useful for scenarios where CLI commands must be run in an environment which is not the same as the system running the tests, like inside a SSH shell.

Jump to

Keyboard shortcuts

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