testhttp

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testhttp is the adapters' preset over authtest.New.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client added in v0.147.0

func Client(t testing.TB, httpCfg *authkit.HTTPConfig, opts ...authtest.Option) *authkit.Client

Client builds a Client serving httpCfg (nil: headless) with Google and GitHub providers, so provider routes exist; opts adjust the rest.

func ClientAt added in v0.147.0

func ClientAt(t testing.TB, issuer string, httpCfg *authkit.HTTPConfig, opts ...authtest.Option) *authkit.Client

ClientAt is Client with its issuer, whose path is the surface's base path. GitHub's static endpoints let a login start without network access.

func HTTP added in v0.147.0

func HTTP() *authkit.HTTPConfig

HTTP is a direct-peer HTTP configuration for tests; authtest's Deps have no rate limits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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