hcltest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalString

func MarshalString(m Marshaler) (string, error)

MarshalString marshals the given marshalable type to a string.

func MustMarshalString

func MustMarshalString(t testing.TB, m Marshaler) string

MustMarshalString is the same as MarshalString, but requires success.

Types

type Marshaler

type Marshaler interface {
	MarshalHCL(w io.Writer) error
}

Marshaler is a type that can be marshalled to HCL, and is implementd by intschema generated types.

Jump to

Keyboard shortcuts

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