diff --git a/pkg/enums/tools/tools.go b/pkg/enums/tools/tools.go index 0a9e53c..4cd419c 100644 --- a/pkg/enums/tools/tools.go +++ b/pkg/enums/tools/tools.go @@ -19,28 +19,29 @@ import "github.com/iancoleman/strcase" type Tool string const ( - HorusecEngine Tool = "HorusecEngine" - GoSec Tool = "GoSec" - SecurityCodeScan Tool = "SecurityCodeScan" - Brakeman Tool = "Brakeman" - Safety Tool = "Safety" - Bandit Tool = "Bandit" - NpmAudit Tool = "NpmAudit" - YarnAudit Tool = "YarnAudit" - GitLeaks Tool = "GitLeaks" - TfSec Tool = "TfSec" - Checkov Tool = "Checkov" - Semgrep Tool = "Semgrep" - Flawfinder Tool = "Flawfinder" - PhpCS Tool = "PhpCS" - MixAudit Tool = "MixAudit" - Sobelow Tool = "Sobelow" - ShellCheck Tool = "ShellCheck" - BundlerAudit Tool = "BundlerAudit" - OwaspDependencyCheck Tool = "OwaspDependencyCheck" - DotnetCli Tool = "DotnetCli" - Nancy Tool = "Nancy" - Trivy Tool = "Trivy" + HorusecEngine Tool = "HorusecEngine" + GoSec Tool = "GoSec" + SecurityCodeScan Tool = "SecurityCodeScan" + Brakeman Tool = "Brakeman" + Safety Tool = "Safety" + Bandit Tool = "Bandit" + NpmAudit Tool = "NpmAudit" + YarnAudit Tool = "YarnAudit" + GitLeaks Tool = "GitLeaks" + TfSec Tool = "TfSec" + Checkov Tool = "Checkov" + Semgrep Tool = "Semgrep" + Flawfinder Tool = "Flawfinder" + PhpCS Tool = "PhpCS" + MixAudit Tool = "MixAudit" + Sobelow Tool = "Sobelow" + ShellCheck Tool = "ShellCheck" + BundlerAudit Tool = "BundlerAudit" + OwaspDependencyCheck Tool = "OwaspDependencyCheck" + DotnetCli Tool = "DotnetCli" + Nancy Tool = "Nancy" + Trivy Tool = "Trivy" + HorusecSemanticEngine Tool = "HorusecSemanticEngine" ) func (t Tool) ToString() string { @@ -76,5 +77,6 @@ func Values() []Tool { DotnetCli, Nancy, Trivy, + HorusecSemanticEngine, } } diff --git a/pkg/enums/tools/tools_test.go b/pkg/enums/tools/tools_test.go index 39403b3..02491bb 100644 --- a/pkg/enums/tools/tools_test.go +++ b/pkg/enums/tools/tools_test.go @@ -44,6 +44,7 @@ func TestToString(t *testing.T) { assert.Equal(t, "DotnetCli", DotnetCli.ToString()) assert.Equal(t, "Nancy", Nancy.ToString()) assert.Equal(t, "Trivy", Trivy.ToString()) + assert.Equal(t, "HorusecSemanticEngine", HorusecSemanticEngine.ToString()) }) } @@ -71,11 +72,12 @@ func TestToLowerCase(t *testing.T) { assert.Equal(t, "dotnetCli", DotnetCli.ToLowerCamel()) assert.Equal(t, "nancy", Nancy.ToLowerCamel()) assert.Equal(t, "trivy", Trivy.ToLowerCamel()) + assert.Equal(t, "horusecSemanticEngine", HorusecSemanticEngine.ToLowerCamel()) }) } func TestValues(t *testing.T) { - t.Run("should return 21 valid values", func(t *testing.T) { - assert.Len(t, Values(), 22) + t.Run("should return 23 valid values", func(t *testing.T) { + assert.Len(t, Values(), 23) }) }