Documentation
¶
Index ¶
- Constants
- Variables
- func EnsureBuilt(t TLike)
- func ParseVMID(output string) (string, error)
- func RegisterVMCleanup(t TLike, identifier string, recursive bool)
- func RunVers(t TLike, timeout time.Duration, args ...string) (string, error)
- func RunVersInDir(t TLike, dir string, timeout time.Duration, args ...string) (string, error)
- func TestEnv(t TLike)
- func UniqueAlias(prefix string) string
- type TLike
Constants ¶
View Source
const (
DefaultTimeout = 60 * time.Second
)
Variables ¶
View Source
var (
BinPath string
)
Functions ¶
func ParseVMID ¶
ParseVMID extracts the VM ID from `vers run` output. The output format is: "VM '<vmID>' started successfully."
func RegisterVMCleanup ¶
RegisterVMCleanup ensures a VM is deleted at test end.
func RunVers ¶
RunVers executes the CLI with a timeout and returns combined stdout/stderr and error.
func RunVersInDir ¶ added in v0.6.0
RunVersInDir executes the CLI in a specific working directory.
func TestEnv ¶
func TestEnv(t TLike)
TestEnv ensures required env vars are present; loads root .env if found.
func UniqueAlias ¶
UniqueAlias returns a unique alias string scoped to a test run.
Types ¶
Click to show internal directories.
Click to hide internal directories.