Documentation ¶
Index ¶
- func AssertErrIsProblem(t *testing.T, err error) bool
- func AssertErrProblemDetail(t *testing.T, detail string, err error) bool
- func AssertErrProblemStatusCode(t *testing.T, code int, err error) bool
- func AssertErrProblemTitle(t *testing.T, title string, err error) bool
- func Contains(needle string) gomock.Matcher
- func FreeTCPPort() (port int)
- func GetIntegrationTestConfig(testDirectory string) map[string]string
- func WaitFor(t *testing.T, p Predicate, timeout time.Duration, message string, ...) bool
- func WaitForNoFail(t *testing.T, p Predicate, timeout time.Duration) bool
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrIsProblem ¶
AssertErrIsProblem asserts err is a *problem.Problem
func AssertErrProblemDetail ¶
AssertErrProblemDetail asserts err is a *problem.Problem with the specified detail
func AssertErrProblemStatusCode ¶
AssertErrProblemStatusCode asserts err is a *problem.Problem with the specified status code
func AssertErrProblemTitle ¶
AssertErrProblemTitle asserts err is a *problem.Problem with the specified title
func FreeTCPPort ¶
func FreeTCPPort() (port int)
FreeTCPPort asks the kernel for a free open port that is ready to use. Taken from https://gist.github.com/sevkin/96bdae9274465b2d09191384f86ef39d
Types ¶
Click to show internal directories.
Click to hide internal directories.