tftest

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProject added in v0.6.2

func CreateProject(project Project) (string, error)

func EnsurePluginsInstalled added in v0.7.3

func EnsurePluginsInstalled()

func ResourceTests

func ResourceTests(t *testing.T, tf string, checks []testutil.ResourceCheck)

func ResourceTestsForProject

func ResourceTestsForProject(t *testing.T, project Project, checks []testutil.ResourceCheck)

func RunCostCalculations

func RunCostCalculations(project Project) ([]*schema.Resource, error)

func WithProviders

func WithProviders(tf string) string

Types

type File

type File struct {
	Path     string
	Contents string
}

type Project

type Project struct {
	Files []File
}

Jump to

Keyboard shortcuts

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