gitlabhq/gitlab-shell

View on GitHub
client/client_test.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function TestClients has 69 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestClients(t *testing.T) {
    testRoot := testhelper.PrepareTestRootDir(t)

    testCases := []struct {
        desc            string
Severity: Minor
Found in client/client_test.go - About 1 hr to fix

    Function buildRequests has 55 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func buildRequests(t *testing.T, relativeURLRoot string) []testserver.TestRequestHandler {
        requests := []testserver.TestRequestHandler{
            {
                Path: "/api/v4/internal/hello",
                Handler: func(w http.ResponseWriter, r *http.Request) {
    Severity: Minor
    Found in client/client_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status