Documentation ¶
Index ¶
- func BeAnything() types.GomegaMatcher
- func BeCalled() types.GomegaMatcher
- func BeCalledN(n int) types.GomegaMatcher
- func BeCalledNWith(n int, args ...interface{}) types.GomegaMatcher
- func BeCalledOnce() types.GomegaMatcher
- func BeCalledOnceWith(args ...interface{}) types.GomegaMatcher
- func BeCalledWith(args ...interface{}) types.GomegaMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeAnything ¶
func BeAnything() types.GomegaMatcher
BeAnything returns a matcher that never fails.
func BeCalled ¶
func BeCalled() types.GomegaMatcher
BeCalled constructs a matcher that asserts the mock function object was called at least once.
func BeCalledN ¶
func BeCalledN(n int) types.GomegaMatcher
BeCalledN constructs a matcher that asserts the mock function object was called exactly n times.
func BeCalledNWith ¶
func BeCalledNWith(n int, args ...interface{}) types.GomegaMatcher
BeCalledNWith constructs a matcher that asserts the mock function object was called exactly n times with a set of arguments matching the given values. The values can be another matcher or a literal value. In the latter case, the values will be checked for equality.
func BeCalledOnce ¶
func BeCalledOnce() types.GomegaMatcher
BeCalledOnce constructs a matcher that asserts the mock function object was called exactly once.
func BeCalledOnceWith ¶
func BeCalledOnceWith(args ...interface{}) types.GomegaMatcher
BeCalledOnceWith constructs a matcher that asserts the mock function object was called exactly once with a set of arguments matching the given values. The values can be another matcher or a literal value. In the latter case, the values will be checked for equality.
func BeCalledWith ¶
func BeCalledWith(args ...interface{}) types.GomegaMatcher
BeCalledWith constructs a matcher that asserts the mock function object was called at least once with a set of arguments matching the given values. The values can be another matcher or a literal value. In the latter case, the values will be checked for equality.
Types ¶
This section is empty.