testutil

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExpected

func GetExpected(goldenFile string) (*tfconf.Module, string, error)

GetExpected returns 'example' Module and expected Golden file content

Types

type TestSettings added in v0.8.2

type TestSettings struct {
	// contains filtered or unexported fields
}

TestSettings respresents the Settings instance for tests

func Settings added in v0.8.2

func Settings() *TestSettings

Settings returns TestSettings instance with predefined set of print.Settings

func (*TestSettings) Build added in v0.8.2

func (s *TestSettings) Build() *print.Settings

Build builds and returns print.Settings based on the provided overrides in TestSettings

func (*TestSettings) With added in v0.8.2

func (s *TestSettings) With(override *print.Settings) *TestSettings

With appends provided 'override' print.Settings to TestSettings

func (*TestSettings) WithColor added in v0.8.2

func (s *TestSettings) WithColor() *TestSettings

WithColor appends predefined 'ShowColor: true' to TestSettings

func (*TestSettings) WithSections added in v0.8.2

func (s *TestSettings) WithSections() *TestSettings

WithSections appends predefined show all sections ShowHeader, ShowProviders, ShowInputs, ShowOutputs to TestSettings

Jump to

Keyboard shortcuts

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