testutil

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExpected

func GetExpected(format, name string) (string, error)

GetExpected returns 'example' Module and expected Golden file content

func GetModule

func GetModule(options *module.Options) (*tfconf.Module, error)

GetModule returns 'example' Module

Types

type TestSettings

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

TestSettings respresents the Settings instance for tests

func Settings

func Settings() *TestSettings

Settings returns TestSettings instance with predefined set of print.Settings

func (*TestSettings) Build

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

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

func (*TestSettings) With

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

With appends provided 'override' print.Settings to TestSettings

func (*TestSettings) WithColor

func (s *TestSettings) WithColor() *TestSettings

WithColor appends predefined 'ShowColor: true' to TestSettings

func (*TestSettings) WithSections

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