gitlabhq/gitlab-shell

View on GitHub
internal/sshd/server_config_test.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function TestUserCertificateHandling has 82 lines of code (exceeds 50 allowed). Consider refactoring.
Open

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

    validUserCert := userCert(t, ssh.UserCert, time.Now().Add(time.Hour))

Severity: Major
Found in internal/sshd/server_config_test.go - About 2 hrs to fix

    Function TestUserKeyHandling has 67 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestUserKeyHandling(t *testing.T) {
        testRoot := testhelper.PrepareTestRootDir(t)
    
        validRSAKey := rsaPublicKey(t)
    
    
    Severity: Minor
    Found in internal/sshd/server_config_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status