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

test

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WithModuleLocationInBody sets to return the module's location in the response body
	WithModuleLocationInBody uint8 = iota
	// WithModuleLocationInHeader sets to return the module's location in the response header
	WithModuleLocationInHeader
)

Variables

This section is empty.

Functions

func Disco

func Disco(s *httptest.Server) *disco.Disco

Disco return a *disco.Disco mapping registry.opentofu.org, localhost, localhost.localdomain, and example.com to the test server.

func Registry

func Registry(flags ...uint8) *httptest.Server

Registry returns an httptest server that mocks out some registry functionality.

func RegistryRetryableErrorsServer

func RegistryRetryableErrorsServer() *httptest.Server

RegistryRetryableErrorsServer returns an httptest server that mocks out the registry API to return 502 errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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