testutil

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppEngine

func AppEngine(t *testing.T, paths config.Paths) *engine.Engine

func CaptureOutput

func CaptureOutput(t *testing.T, fn func()) (string, string)

func Chdir

func Chdir(t *testing.T, dir string) func()

func EnsurePaths

func EnsurePaths(t *testing.T, paths config.Paths)

func FindProfile

func FindProfile(t *testing.T, list []engine.Profile, name string) engine.Profile

func MustReadFile

func MustReadFile(t *testing.T, path string) []byte

func MustWriteExecutable

func MustWriteExecutable(t *testing.T, path, content string)

func MustWriteFile

func MustWriteFile(t *testing.T, path, content string)

func NewTestApp

func NewTestApp(t *testing.T) *cli.App

func Paths

func Paths(root string) config.Paths

func RunApp

func RunApp(t *testing.T, app *cli.App, args ...string) (int, string, string)

func WithStdin

func WithStdin(t *testing.T, input string, fn func())

func WriteExecutable

func WriteExecutable(t *testing.T, dir, name, body string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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