test_helpers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExactCounter int
View Source
var ExactMocker = func(val, check, error_msg string) error {
	ExactCounter++

	return nil
}
View Source
var OneOfCounter int
View Source
var OneOfMocker = func(val string, list []interface{}, error_msg string) error {
	OneOfCounter++

	return nil
}
View Source
var RegexCounter int
View Source
var RegexMocker = func(val, pattern, error_msg string) error {
	RegexCounter++

	return nil
}

Functions

func Contains

func Contains(list []string, val string) bool

func GetResourceData

func GetResourceData(t *testing.T, m map[string]interface{}, res *schema.Resource) *schema.ResourceData

func NotContains

func NotContains(list []string, val string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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