Documentation ¶
Overview ¶
Package testutil provides helpful functions for testing command controller.
Index ¶
- func GetSuccessResponseFromHandler(handler rest.Handler, requestBody io.Reader, path string) (*bytes.Buffer, error)
- func LookupHandler(t *testing.T, op restOperation, path string) rest.Handler
- func SendRequestToHandler(handler rest.Handler, requestBody io.Reader, path string) (*bytes.Buffer, int, error)
- func VerifyError(t *testing.T, expectedCode command.Code, expectedMsg string, data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSuccessResponseFromHandler ¶
func GetSuccessResponseFromHandler(handler rest.Handler, requestBody io.Reader, path string) (*bytes.Buffer, error)
GetSuccessResponseFromHandler reads response from given http handle func. expects http status OK.
func LookupHandler ¶
LookupHandler looks up for handler for given path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.