authtest

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package authtest provides shared test helpers for auth-related tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsolateAuthState

func IsolateAuthState(t *testing.T)

IsolateAuthState redirects config, HOME, and keyring to temporary locations so tests never touch real credentials. All mutations are reverted via t.Cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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