Documentation
¶
Overview ¶
Package testhome gives a test a home folder of its own, so that it never reads or writes the user's dev.yaml or the state of their aicoded dev. Go keeps its caches and settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
Set points HOME and XDG_CONFIG_HOME at a new temp folder, removed when the test ends, and returns it. The folder's path is short, so the Unix sockets of aicoded dev fit below it. It first pins GOCACHE, GOPATH, GOMODCACHE and GOENV to where they are now, so the go command still finds its build cache and modules without the network.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.