Documentation
¶
Index ¶
- func Contains(s, substr string, message ...string) error
- func Empty(value interface{}, message ...string) error
- func Equal(expected, actual interface{}, message ...string) error
- func False(value bool, message ...string) error
- func Nil(value interface{}, message ...string) error
- func NotContains(s, substr string, message ...string) error
- func NotEqual(expected, actual interface{}, message ...string) error
- func NotNil(value interface{}, message ...string) error
- func True(value bool, message ...string) error
- func YAMLContains(path, field, substr string, message ...string) error
- func YAMLField(path, field, expectedValue string, message ...string) error
- func YAMLFieldExists(path, field string, message ...string) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotContains ¶
NotContains asserts that a string does not contain a substring
func YAMLContains ¶
YAMLContains asserts that a YAML file's field contains a substring.
func YAMLField ¶
YAMLField asserts that a YAML file contains a field with the expected value. It parses the YAML file and checks if the specified field equals the expected value.
func YAMLFieldExists ¶
YAMLFieldExists asserts that a YAML file contains a field (regardless of value).
Types ¶
Click to show internal directories.
Click to hide internal directories.