gitlabhq/gitlab-shell

View on GitHub
internal/command/receivepack/gitalycall_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Function TestReceivePack has 70 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestReceivePack(t *testing.T) {
    for _, network := range []string{"unix", "tcp", "dns"} {
        t.Run(fmt.Sprintf("via %s network", network), func(t *testing.T) {
            gitalyAddress, testServer := testserver.StartGitalyServer(t, network)
            t.Log(fmt.Sprintf("Server address: %s", gitalyAddress))
Severity: Minor
Found in internal/command/receivepack/gitalycall_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status