Documentation
¶
Index ¶
- func CallAssertion(name string, params ...interface{}) bool
- func Contains(actualValue interface{}, expValue interface{}) bool
- func EndsWith(actualValue interface{}, expValue interface{}) bool
- func Equals(actualValue interface{}, expValue interface{}) bool
- func GetRawJsonResult(value interface{}) string
- func Greater(actualValue interface{}, expValue interface{}) bool
- func GreaterOrEquals(actualValue interface{}, expValue interface{}) bool
- func Has(actualValue interface{}, expValue interface{}) bool
- func HasMapKey(actualValue interface{}, expValue interface{})
- func In(actualValue interface{}, expValue interface{}) bool
- func IsNotNull(actualValue interface{}, expValue interface{})
- func IsNull(actualValue interface{}, expValue interface{})
- func Less(actualValue interface{}, expValue interface{}) bool
- func LessOrEquals(actualValue interface{}, expValue interface{}) bool
- func Match(actualValue interface{}, expPattern interface{}) bool
- func NotEquals(actualValue interface{}, expValue interface{}) bool
- func NotHas(actualValue interface{}, expValue interface{}) bool
- func NotHasMapKey(actualValue interface{}, expValue interface{})
- func NotIn(actualValue interface{}, expValue interface{}) bool
- func StartsWith(actualValue interface{}, expValue interface{}) bool
- func ValidateCallName(name string) bool
- func ValidateCallParams(name string, params []interface{}) bool
- type AssertionDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallAssertion ¶
func Equals ¶
func Equals(actualValue interface{}, expValue interface{}) bool
for both String and Numeric
func GetRawJsonResult ¶
func GetRawJsonResult(value interface{}) string
func GreaterOrEquals ¶
func GreaterOrEquals(actualValue interface{}, expValue interface{}) bool
func HasMapKey ¶
func HasMapKey(actualValue interface{}, expValue interface{})
special cases for map: map has key
func In ¶
func In(actualValue interface{}, expValue interface{}) bool
In, NotIn, Has, NotHas, for item in item slice
func IsNotNull ¶
func IsNotNull(actualValue interface{}, expValue interface{})
has key but value is not null
func LessOrEquals ¶
func LessOrEquals(actualValue interface{}, expValue interface{}) bool
func NotHasMapKey ¶
func NotHasMapKey(actualValue interface{}, expValue interface{})
func StartsWith ¶
func StartsWith(actualValue interface{}, expValue interface{}) bool
func ValidateCallName ¶
func ValidateCallParams ¶
Types ¶
type AssertionDetails ¶
Click to show internal directories.
Click to hide internal directories.