Documentation ¶
Index ¶
- Constants
- func AssertContainsString(t *testing.T, expectedSubstring, actual string)
- func AssertEqualsInt(t *testing.T, expected, actual int)
- func AssertEqualsString(t *testing.T, expected, actual string)
- func AssertFalse(t *testing.T, message string, expression bool)
- func AssertNil(t *testing.T, obj interface{})
- func AssertNilError(t *testing.T, err error)
- func AssertNotNil(t *testing.T, obj interface{})
- func AssertNotNilError(t *testing.T, err error)
- func AssertPrefixString(t *testing.T, expectedPrefix, actual string)
- func AssertStringNotEmpty(t *testing.T, message, str string)
- func AssertTrue(t *testing.T, message string, expression bool)
- func ConvertInterfaceToString(interfaceData interface{}) string
- func InitLog()
- func MarshalToJSON(v interface{}) (*bytes.Buffer, error)
- func UnmarshalJSON(data []byte, v interface{}) error
- func UnmarshalJSONStringIfNecessary(field string, value interface{}) interface{}
Constants ¶
const (
// utility constants
LoggerID = "terraform-provider-vra7"
)
terraform provider constants
Variables ¶
This section is empty.
Functions ¶
func AssertContainsString ¶
AssertContainsString asserts when the actual string contains the expectedSubString
func AssertEqualsInt ¶
AssertEqualsInt asserts when expected and actual integer valus are equal
func AssertEqualsString ¶
AssertEqualsString asserts when the expected and actual strings are qual
func AssertFalse ¶
AssertFalse asserts when the message is true
func AssertNilError ¶
AssertNilError asserts when the error is nil
func AssertNotNil ¶
AssertNotNil asserts when the objectType is not nil
func AssertNotNilError ¶
AssertNotNilError asserts when the error is not nil
func AssertPrefixString ¶
AssertPrefixString asserts when the actual string contains the prefix expectedPrefix
func AssertStringNotEmpty ¶
AssertStringNotEmpty asserts when the string is not empty
func AssertTrue ¶
AssertTrue asserts when the message is true
func ConvertInterfaceToString ¶
func ConvertInterfaceToString(interfaceData interface{}) string
ConvertInterfaceToString cpnverts interface to string
func MarshalToJSON ¶
MarshalToJSON the object to JSON and convert to *bytes.Buffer
func UnmarshalJSON ¶
UnmarshalJSON decodes json
func UnmarshalJSONStringIfNecessary ¶
func UnmarshalJSONStringIfNecessary(field string, value interface{}) interface{}
UnmarshalJSONStringIfNecessary parses value and if it's JSON string, unmarshal it
Types ¶
This section is empty.