# Functions
AbsolutePath will combine the project absolute path with the relative file/path starting from the root.
ContextURI returns the current ContextPath + specified path.
DefaultTestConfigPath returns the default test config file location relative to the project location.
FileToObj loads a JSON asset to an object.
FileToProtoBytes loads a JSON asset into bytes for the specified protocol buffer.
FileToProtoObj loads a JSON asset into a protobuf object.
FileToReader loads JSON assets to a reader for tests with request bodies.
LoadConfig loads a configuration file meant for tests into the provided `IConfig`.
NewJsonGetRequest returns a new GET request with the `Content-Type:application/json` header to indicate that the response should be expected in a Json format.
NewProtoGetRequest returns a new GET request with the `Content-Type:application/x-protobuf` header to indicate that the response should be expected in a Protobuf format.
NewResponseRecorder returns a ResponseRecorder which is an extension of httptest.ResponseRecorder.
ObjToReader loads an object to an io.Reader, useful to load request, or response bodies for mocks.
Prepare should be called during init of a integration test file.
RequestFromBytes loads byte array data as the request body, and creates an http.Request with the provided HTTP method and URL.
RequestFromJsonFile loads a JSON file into a request body, and creates an http.Request with the provided HTTP method and URL.
RequestFromProtoObj serializes the proto message, uses the resulting byte array as the request body, and creates an http.Request with the provided HTTP method and URL.
RequestFromReader loads the provided io.Reader as request body, and creates an http.Request with the provided HTTP method and URL.
RequestNoBody creates a new http.Request with the provided HTTP method and URL and an empty request body.
Serve starts the server for testing and returns the ResponseRecorder used for asserts.
# Constants
No description provided by the author
# Structs
ResponseRecorder is an extension of httptest.ResponseRecorded.
# Type aliases
No description provided by the author