Documentation ¶
Index ¶
- func BeBadRequestError() types.GomegaMatcher
- func BeForbiddenError() types.GomegaMatcher
- func BeNotFoundError() types.GomegaMatcher
- func ConsistOfFields(fields ...gstruct.Fields) types.GomegaMatcher
- func DeepDerivativeEqual(expected interface{}) types.GomegaMatcher
- func DeepEqual(expected interface{}) types.GomegaMatcher
- func HaveFields(fields gstruct.Fields) types.GomegaMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeBadRequestError ¶
func BeBadRequestError() types.GomegaMatcher
BeBadRequestError checks if error is BadRequest.
func BeForbiddenError ¶
func BeForbiddenError() types.GomegaMatcher
BeForbiddenError checks if error is Forbidden.
func BeNotFoundError ¶
func BeNotFoundError() types.GomegaMatcher
BeNotFoundError checks if error is NotFound.
func ConsistOfFields ¶
func ConsistOfFields(fields ...gstruct.Fields) types.GomegaMatcher
ConsistOfFields succeeds if actual matches all selected fields. Actual must be an array, slice or map. For maps, ConsistOfFields matches against the map's values. Actual's elements must be pointers.
func DeepDerivativeEqual ¶
func DeepDerivativeEqual(expected interface{}) types.GomegaMatcher
DeepDerivativeEqual is similar to DeepEqual except that unset fields in actual are ignored (not compared). This allows us to focus on the fields that matter to the semantic comparison.
func DeepEqual ¶
func DeepEqual(expected interface{}) types.GomegaMatcher
DeepEqual returns a Gomega matcher which checks whether the expected object is deeply equal with the object it is being compared against.
func HaveFields ¶
func HaveFields(fields gstruct.Fields) types.GomegaMatcher
HaveFields succeeds if actual is a pointer and has a specific fields. Ignores extra elements or fields.
Types ¶
This section is empty.