Documentation ¶ Index ¶ Variables func Init() (err error) func Setup(t *testing.T) (*http.ServeMux, *httptest.Server, *client.Client) func Teardown(server *httptest.Server) Constants ¶ This section is empty. Variables ¶ View Source var ( Config *config.Config Client *client.Client Limiter *limiter.Limiter ) Functions ¶ func Init ¶ func Init() (err error) func Setup ¶ func Setup(t *testing.T) (*http.ServeMux, *httptest.Server, *client.Client) Setup sets up a test HTTP server along with a gitlab.Client that is configured to talk to that test server. Tests should register handlers on mux which provide mock responses for the API method being tested. func Teardown ¶ func Teardown(server *httptest.Server) Teardown closes the test HTTP server. Types ¶ This section is empty. Source Files ¶ View all Source files common.go test.go Click to show internal directories. Click to hide internal directories.