loggertest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultilineJSONDecode

func MultilineJSONDecode(data io.Reader) ([]map[string]interface{}, error)

func ProviderRoot

func ProviderRoot(ctx context.Context, output io.Writer) context.Context

func ProviderRootWithLocation

func ProviderRootWithLocation(ctx context.Context, output io.Writer) context.Context

ProviderRootWithLocation is for testing code that affects go-hclog's caller information (location offset). Most testing code should avoid this, since correctly checking differences including the location is extra effort with little benefit.

func SDKRoot

func SDKRoot(ctx context.Context, output io.Writer) context.Context

func SDKRootWithLocation

func SDKRootWithLocation(ctx context.Context, output io.Writer) context.Context

SDKRootWithLocation is for testing code that affects go-hclog's caller information (location offset). Most testing code should avoid this, since correctly checking differences including the location is extra effort with little benefit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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