Documentation ¶ Index ¶ func MustWriteHTTPResponse(t *testing.T, w io.Writer, fixturePath string) func Setup(t *testing.T) (*http.ServeMux, *httptest.Server, *gitlab.Client) func Teardown(server *httptest.Server) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MustWriteHTTPResponse ¶ func MustWriteHTTPResponse(t *testing.T, w io.Writer, fixturePath string) func Setup ¶ func Setup(t *testing.T) (*http.ServeMux, *httptest.Server, *gitlab.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 definition.go Click to show internal directories. Click to hide internal directories.