scratch

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package scratch creates and deletes the aayu-scratch-* repositories that live tests (AAYU_LIVE=1) run against.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Repo

func Repo(t testing.TB, token string) string

Repo creates a private aayu-scratch-* repository for the token's user with a first commit, and deletes it when the test ends, unless AAYU_LIVE_KEEP=1 keeps it as evidence (delete it by hand afterwards). Test scaffolding, not a verb write, so it calls the API directly.

func Token

func Token(t testing.TB) string

Token returns the human token for live tests: AAYU_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN, then `gh auth token`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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