testutil/

directory
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT

Directories

Path Synopsis
Package fakegh is an in-memory GitHub REST and GraphQL server for the endpoints loupe calls, reached through the production client so request encoding is exercised end to end.
Package fakegh is an in-memory GitHub REST and GraphQL server for the endpoints loupe calls, reached through the production client so request encoding is exercised end to end.
Package gitfail puts a git on PATH that runs the real git except where a test wants a call to fail or print nothing.
Package gitfail puts a git on PATH that runs the real git except where a test wants a call to fail or print nothing.
Package gitrepo builds a local stand-in for a GitHub repository: a bare remote, a user's clone of it, and a pull request head published at refs/pull/<number>/head.
Package gitrepo builds a local stand-in for a GitHub repository: a bare remote, a user's clone of it, and a pull request head published at refs/pull/<number>/head.
Package golden compares output with the files under testdata/golden at the repository root, and owns the one -update flag that rewrites them.
Package golden compares output with the files under testdata/golden at the repository root, and owns the one -update flag that rewrites them.
Package herdrstub writes a stand-in for the Herdr command line, which loupe handoff drives to open review in a pane beside the agent.
Package herdrstub writes a stand-in for the Herdr command line, which loupe handoff drives to open review in a pane beside the agent.
Package refusaltest checks that an error is a loupe refusal of the expected code.
Package refusaltest checks that an error is a loupe refusal of the expected code.
Package screen drives loupe's full-screen programs the way a human at a terminal does: keys go in through a pipe, and each step waits for the screen to show its result rather than for time to pass, so a test never races the program, however slowly a step such as publishing runs.
Package screen drives loupe's full-screen programs the way a human at a terminal does: keys go in through a pipe, and each step waits for the screen to show its result rather than for time to pass, so a test never races the program, however slowly a step such as publishing runs.
Package sgrtest reads the SGR escape sequences that styled terminal text carries.
Package sgrtest reads the SGR escape sequences that styled terminal text carries.

Jump to

Keyboard shortcuts

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