cyberark/secretless-broker

View on GitHub
pkg/secretless/config/v2/config_env_test.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function TestConfigEnv has 115 lines of code (exceeds 70 allowed). Consider refactoring.
Open

func TestConfigEnv(t *testing.T) {

    // Shared mocks and doubles

    logger := loggermock.NewLogger()
Severity: Major
Found in pkg/secretless/config/v2/config_env_test.go - About 2 hrs to fix

    Function TestConfigEnv has 8 return statements (exceeds 7 allowed).
    Open

    func TestConfigEnv(t *testing.T) {
    
        // Shared mocks and doubles
    
        logger := loggermock.NewLogger()
    Severity: Major
    Found in pkg/secretless/config/v2/config_env_test.go - About 35 mins to fix

      TODO found
      Open

      // TODO: move the log mock public

      There are no issues that match your filters.

      Category
      Status