Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyTestFile ¶
CopyTestFile copies the contents of a designated file to a temporary file and returns the filepath of the temporary file for cleanup. This function does NOT clean up created temporary files. Borrows from: https://opensource.com/article/18/6/copying-files-go
func NewContext ¶
func NewContext(t *testing.T, method string, query string, r io.Reader, ctype string) (echo.Context, *httptest.ResponseRecorder)
NewContext returns a new echo.Context, and *httptest.ResponseRecorder to be used for tests.
func NewGenerator ¶
NewGenerator returns a mock token generator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.