cyberark/secretless-broker

View on GitHub
internal/plugin/connectors/tcp/mssql/connector_test.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function TestSingleUseConnector_Connect has 110 lines of code (exceeds 70 allowed). Consider refactoring.
Open

func TestSingleUseConnector_Connect(t *testing.T) {
    t.Run("singleUseConnector.driver#Connect success", func(t *testing.T) {
        expectedBackendConn := mock.DefaultMSSQLConnectorCtor.BackendConn

        connector := newSingleUseConnectorWithOptions(
Severity: Major
Found in internal/plugin/connectors/tcp/mssql/connector_test.go - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status