matchers

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL