testutil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRuntime

type FakeRuntime struct {
	BinDir       string
	CallsLogPath string
}

func SetupFakeRuntime

func SetupFakeRuntime(t *testing.T) *FakeRuntime

SetupFakeRuntime provisions an isolated PATH environment injected with shell stubs that intercept external tool executions (podman, docker, cloudflared).

func (*FakeRuntime) Requests

func (f *FakeRuntime) Requests(t *testing.T) [][]string

Requests parsed the intercepted invocation log. Returns a 2D slice where each sub-slice is [command, arg1, arg2...]

Jump to

Keyboard shortcuts

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