testhelpers

package
v1.0.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func AssertNoError

func AssertNoError(tb testing.TB, err error)

AssertNoError fails the test if an err is not nil.

func Equals

func Equals(tb testing.TB, exp, act interface{})

Equals fails the test if exp is not equal to act.

func IsTestResource

func IsTestResource(identifier string) bool

IsTestResource returns true if given resource identifier is from terraform test identifier should be resource name but some resource don't have names return true if identifier match regex "tf[-_]test" common used prefixes are "tf_tests", "tf_test", "tf-tests", "tf-test"

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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