test

package
v0.9.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestCheckResourceExpectation

func TestCheckResourceExpectation(res string, fact interface{}, existsFunc TestExistsCheckFactoryFunc, expectation map[string]TestExpectValue) resource.TestCheckFunc

Types

type EqualsTestExpectValue

type EqualsTestExpectValue struct {
	Value interface{}
	TestExpectValue
}

func (*EqualsTestExpectValue) Execute

func (t *EqualsTestExpectValue) Execute(val interface{}) error

func (*EqualsTestExpectValue) String

func (t *EqualsTestExpectValue) String() string

type RegexTestExpectValue

type RegexTestExpectValue struct {
	Value interface{}
	TestExpectValue
}

func (*RegexTestExpectValue) Execute

func (t *RegexTestExpectValue) Execute(val interface{}) error

func (*RegexTestExpectValue) String

func (t *RegexTestExpectValue) String() string

type TestExistsCheckFactoryFunc

type TestExistsCheckFactoryFunc func(resource string, fact interface{}) resource.TestCheckFunc

type TestExpectValue

type TestExpectValue interface {
	Execute(val interface{}) error
	String() string
}

func Equals

func Equals(exp string) TestExpectValue

func RegexMatches

func RegexMatches(exp string) TestExpectValue

Jump to

Keyboard shortcuts

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