testhome

package
v0.107.37 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testhome keeps a test binary away from the developer's data directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RealHome

func RealHome() string

RealHome is the home directory from before Run, for tests that look for tools installed there.

func Run

func Run(m *testing.M) int

Run points the home directory at an empty temporary one and clears the data directory overrides, then runs the tests. Without it, agents built in tests read the real data directory, and the saved memory there ends up in the prompts the tests assert on. Call it from TestMain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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