package
9.1.1
Repository: https://github.com/messagebird/go-rest-api.git
Documentation: pkg.go.dev

# 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.
AssertTestdataJson gets testdata as json 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.
MockClient initializes a new mock of MessageBird client.
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.

# Structs

No description provided by the author