Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug()
Debug enables or disables debug logging. If the DEBUG environment variable is set, debug logging is enabled. Otherwise, it is disabled.
func MockRequestJson ¶
func MockRequestJson() (func() (string, string, string), request.RequestOption)
MockRequestJson returns a function which can be used with openapi.OpenApi to mock a request handler and inspect the response.
Example:
inspect, requestJson := MockRequestJson() openApiInstance.With(requestJson) openApiInstance.SomeEndpoint() method, uri, body := inspect()
func RunTestsIfMatch ¶
RunTestsIfMatch allows us to declare tests that only run if a specific test suite is matched, by calling the package's test suite.
This is a workaround because Ginkgo only allows you to declare one suite per package.
func RunTestsWithFocus ¶
RunTestsWithFocus allows us to define a TestMain which will only run tests that match the given `-test.run` flag. This is to make Ginkgo Focus work with the Golang test suite flags and the VSCode test runner.
Types ¶
This section is empty.