getTestable function

  1. @visibleForTesting
GitLab getTestable(
  1. GitLabHttpClient httpClient, [
  2. String token = 'secret-token'
])

A helper function to get a GitLab instance with a GitLabHttpClient that can be mocked.

Implementation

@visibleForTesting
GitLab getTestable(GitLabHttpClient httpClient,
        [String token = 'secret-token']) =>
    new GitLab._test(httpClient, token);