testutil

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFilesEqual

func AssertFilesEqual(t *testing.T, expectedPath, generatedPath string)

Assert that the contents of two files are equal.

To update the expected file, run the test with PULUMI_ACCEPT=true.

func Languages

func Languages() map[string]string

Languages returns a map of supported languages for conversion, and their default extensions.

func MakeTestDir

func MakeTestDir(t *testing.T, sourceDir string) string

MakeTestDir creates a temporary test folder and copies the testdata into it. This ensures that generated test files do not pollute the working directory, and cause developers to commit erronerous files by mistake. We can also rely on the temporary folder being cleaned up by the Golang test framework.

Types

This section is empty.

Jump to

Keyboard shortcuts

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