gitlabhq/gitlab-shell

View on GitHub
internal/sshd/session_test.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function TestHandleShell has 76 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestHandleShell(t *testing.T) {
    testCases := []struct {
        desc                 string
        cmd                  string
        errMsg               string
Severity: Major
Found in internal/sshd/session_test.go - About 2 hrs to fix

    Function TestHandleExec has 54 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestHandleExec(t *testing.T) {
        testCases := []struct {
            desc               string
            payload            []byte
            expectedErr        error
    Severity: Minor
    Found in internal/sshd/session_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status