Documentation ¶
Index ¶
- Constants
- func AssertConflict(t *testing.T, response *httptest.ResponseRecorder, expectedErrorCode string, ...)
- func AssertCreated(t *testing.T, response *httptest.ResponseRecorder)
- func AssertNoContent(t *testing.T, response *httptest.ResponseRecorder)
- func AssertNotFound(t *testing.T, response *httptest.ResponseRecorder, expectedErrorCode string, ...)
- func AssertOk(t *testing.T, response *httptest.ResponseRecorder)
- func AssertValidationErrors(t *testing.T, response *httptest.ResponseRecorder, ...)
- func JSONCollectionResponse(response *httptest.ResponseRecorder) (jsonResponse []map[string]interface{})
- func JSONItemResponse(response *httptest.ResponseRecorder) (jsonResponse map[string]interface{})
- func NewTestExchangeWithBindings(name string, bindings []*internal.Binding) (queue *internal.Exchange)
- func NewTestExchangeWithoutBindings(name string) (queue *internal.Exchange)
- func NewTestQueueDurableWithoutMessages(name string) (queue *internal.Queue)
- func NewTestQueueTransientWithMessages(name string, messages []*internal.Message) (queue *internal.Queue)
- func NewTestQueueTransientWithoutMessages(name string) (queue *internal.Queue)
- func NewTestSystemQueueWithoutMessages(name string) (queue *internal.Queue)
Constants ¶
View Source
const ApiV1BasePath = "/api/v1"
Variables ¶
This section is empty.
Functions ¶
func AssertConflict ¶
func AssertCreated ¶
func AssertCreated(t *testing.T, response *httptest.ResponseRecorder)
func AssertNoContent ¶
func AssertNoContent(t *testing.T, response *httptest.ResponseRecorder)
func AssertNotFound ¶
func AssertValidationErrors ¶
func AssertValidationErrors(t *testing.T, response *httptest.ResponseRecorder, expectedErrors []errs.ValidationError)
func JSONCollectionResponse ¶
func JSONCollectionResponse(response *httptest.ResponseRecorder) (jsonResponse []map[string]interface{})
func JSONItemResponse ¶
func JSONItemResponse(response *httptest.ResponseRecorder) (jsonResponse map[string]interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.