Documentation ¶
Index ¶
- func ExpectStructsToMatch(expected interface{}, actual interface{})
- func ExpectStructsToMatchExcluding(expected interface{}, actual interface{}, excludeFields ...string)
- func ExpectStructsToMatchIncluding(expected interface{}, actual interface{}, includeFields ...string)
- func StructMatcher(expected interface{}, actual interface{}, shouldFilter bool, ...) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectStructsToMatch ¶
func ExpectStructsToMatch(expected interface{}, actual interface{})
func ExpectStructsToMatchExcluding ¶
func ExpectStructsToMatchExcluding(expected interface{}, actual interface{}, excludeFields ...string)
func ExpectStructsToMatchIncluding ¶
func ExpectStructsToMatchIncluding(expected interface{}, actual interface{}, includeFields ...string)
func StructMatcher ¶
func StructMatcher(expected interface{}, actual interface{}, shouldFilter bool, filterInclude bool, filterFields ...string) []string
* If fields are to be filtered in or out, set shouldFilter to true; filterInclude is true to * include fields or false to exclude fields, and filterFields contains the field names to filter on. * To filter on a field "fieldname" in struct "structname", pass in "fieldname". * To filter on a field "fieldname" in a nested struct under field "structfield", pass in "structfield.fieldname". * This function assumes structs will only ever be nested one level deep.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.