Help us shape the future of Go! Take the 2026 Go Developer Survey

githubtest

package
v0.1.0-rc.41 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: 11 Imported by: 0

Documentation

Overview

package githubtest serves signed GitHub workload fixtures without allowing tests to substitute a production issuer or contact GitHub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Claims

func Claims(audience string, now time.Time) map[string]any

Types

type Issuer

type Issuer struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *Issuer

func NewProvider

func NewProvider(t *testing.T, issuer string) *Issuer

NewProvider keeps the production issuer and redirects only its key fetches.

func (*Issuer) Sign

func (i *Issuer) Sign(t *testing.T, claims map[string]any) string

Jump to

Keyboard shortcuts

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