Documentation
¶
Overview ¶
Package capture answers one question for the live suites: where may a picture of somebody's screen be written?
It carries no testing dependency and no build tag, so every backend's live tests reach the same answer through the same code instead of each keeping a copy of the rule.
Index ¶
Constants ¶
const Env = "WINDOW_CAPTURE_DIR"
Env names the directory override.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir returns a directory that exists, is durable, and is inside no git work tree, with a phrase naming where the choice came from so an error message can be acted on.
A capture of a whole output photographs whoever is running it, at work — their code, their mail, their tabs. These repositories are public, and a .gitignore entry is a safety net rather than a barrier: `git add -f`, a fresh clone, or any tool that does not consult it publishes the file anyway. So such captures do not go where they could be committed at all.
Nor do they go somewhere that evaporates: the artefact exists SO THAT A PERSON CAN LOOK AT IT, and a temporary directory removed when the test ends is gone before anyone can open it. The default is the user's own configuration directory.
func RepoRootOf ¶
RepoRootOf returns the work tree dir is inside, or "" if it is in none.
A .git that is a FILE rather than a directory is a worktree, and commits just as well — so both count.
Types ¶
This section is empty.