pkgtesting

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertExpirationSeconds

func AssertExpirationSeconds(t *testing.T, secs int)

func CheckRegex

func CheckRegex(t *testing.T, name, pattern, value string)

func EvalEnv

func EvalEnv(s string) string

func RequestIDToken

func RequestIDToken(t *testing.T, headers http.Header, url, name, expectedMetadataFlavor string,
	expectedAudience, expectedIssuer, expectedSubject string) string

func RequestJSON

func RequestJSON(t *testing.T, headers http.Header, url, name, expectedMetadataFlavor string, obj any)

func RequestText

func RequestText(t *testing.T, headers http.Header, url, name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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