acctest

package
v0.0.0-...-9d70a79 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstNameCharSetAlpha    = "CharSetAlpha"
	ConstNameCharSetAlphaNum = "CharSetAlphaNum"
)
View Source
const (
	FuncNameRandInt               = `RandInt`
	FuncNameRandIntRange          = `RandIntRange`
	FuncNameRandIpAddress         = `RandIpAddress`
	FuncNameRandSSHKeyPair        = `RandSSHKeyPair`
	FuncNameRandString            = `RandString`
	FuncNameRandStringFromCharSet = `RandStringFromCharSet`
	FuncNameRandTLSCert           = `RandTLSCert`
	FuncNameRandomWithPrefix      = `RandomWithPrefix`
)
View Source
const (
	PackageModule     = terraformtype.ModuleTerraformPluginSdk
	PackageModulePath = `helper/acctest`
	PackageName       = `acctest`
	PackagePath       = PackageModule + `/` + PackageModulePath
)

Variables

This section is empty.

Functions

func IsConst

func IsConst(e ast.Expr, info *types.Info, constName string) bool

IsConst returns if the expr is a constant in the acctest package

func IsFunc

func IsFunc(e ast.Expr, info *types.Info, funcName string) bool

IsFunc returns if the function call is in the acctest package

func IsNamedType

func IsNamedType(t *types.Named, typeName string) bool

IsNamedType returns if the type name matches and is from the helper/acctest package

func PackagePathVersion

func PackagePathVersion(moduleVersion int) string

PackagePathVersion returns the import path for a module version

Types

This section is empty.

Jump to

Keyboard shortcuts

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