util

package
v0.0.0-...-7a3fe27 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ApiV1BasePath = "/api/v1"

Variables

This section is empty.

Functions

func AssertConflict

func AssertConflict(t *testing.T, response *httptest.ResponseRecorder, expectedErrorCode string, expectedErrorMessage string)

func AssertCreated

func AssertCreated(t *testing.T, response *httptest.ResponseRecorder)

func AssertNoContent

func AssertNoContent(t *testing.T, response *httptest.ResponseRecorder)

func AssertNotFound

func AssertNotFound(t *testing.T, response *httptest.ResponseRecorder, expectedErrorCode string, expectedErrorMessage string)

func AssertOk

func AssertOk(t *testing.T, response *httptest.ResponseRecorder)

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{})

func NewTestExchangeWithBindings

func NewTestExchangeWithBindings(name string, bindings []*internal.Binding) (queue *internal.Exchange)

func NewTestExchangeWithoutBindings

func NewTestExchangeWithoutBindings(name string) (queue *internal.Exchange)

func NewTestQueueDurableWithoutMessages

func NewTestQueueDurableWithoutMessages(name string) (queue *internal.Queue)

func NewTestQueueTransientWithMessages

func NewTestQueueTransientWithMessages(name string, messages []*internal.Message) (queue *internal.Queue)

func NewTestQueueTransientWithoutMessages

func NewTestQueueTransientWithoutMessages(name string) (queue *internal.Queue)

func NewTestSystemQueueWithoutMessages

func NewTestSystemQueueWithoutMessages(name string) (queue *internal.Queue)

Types

This section is empty.

Jump to

Keyboard shortcuts

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