# Functions
AssertEndpointCalled fails the test if the last request was not made to the provided endpoint (e.g.
AssertTestdata gets testdata and asserts it equals actual.
Client initializes a new MessageBird client that uses the.
EnableServer starts a fake server, runs the test and closes the server.
HTTPTestTransport builds http transport that allows to pass custom http handler to http server.
Testdata returns a file's bytes based on the path relative to the testdata directory.
WillReturn sets the response body (b) and status (s) to be returned by the server for incoming requests.
WillReturnAccessKeyError sets the response body and status for requests to indicate the request is not allowed due to an incorrect access key.
WillReturnOnlyStatus sets the response status (s) to be returned by the server for incoming requests.
WillReturnTestdata sets the status (s) for the test server to respond with.
# Variables
Request contains the lastly received http.Request by the fake server.