testutil

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildModuleParseBenchmarkModule

func BuildModuleParseBenchmarkModule(tb testing.TB, dir string, fileCount int)

func BuildParserBenchmarkModule

func BuildParserBenchmarkModule(tb testing.TB, dir string, fileCount int)

func CreateTestModuleDir

func CreateTestModuleDir(tb testing.TB, root string, parts ...string) string

func ParseBodyContent

func ParseBodyContent(tb testing.TB, src string) *hcl.BodyContent

func ParseExpression

func ParseExpression(tb testing.TB, expr string) hcl.Expression

func ParseExpressionMap

func ParseExpressionMap(tb testing.TB, expressions map[string]string) map[string]hcl.Expression

func SetupTempModule

func SetupTempModule(tb testing.TB, files map[string]string) string

func WriteFile

func WriteFile(tb testing.TB, dir, filename, content string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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