testutil

package
v3.100.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogging added in v3.99.0

func InitLogging(t *testing.T, ctx context.Context, sink LoggingSink) context.Context

InitLogging equips ctx with a logger usable by [tfbridge.GetLogger].

This API is experimental and may change or be removed during minor releases.

func RandomProvider

func RandomProvider(t *testing.T) integration.LocalDependency

RandomProvider returns a integration.LocalDependency reference to the random provider installed via `make install_plugins`.

Types

type LoggingSink added in v3.99.0

type LoggingSink interface {
	Log(context context.Context, sev diag.Severity, urn resource.URN, msg string) error
	LogStatus(context context.Context, sev diag.Severity, urn resource.URN, msg string) error
}

A sink that [tfbridge.GetLogger] can write to.

This API is experimental and may change or be removed during minor releases.

Jump to

Keyboard shortcuts

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