converting dsl tests to new struct (#4003)

dev
Mzack9999 2023-07-28 19:20:52 +02:00 committed by GitHub
parent 3894d466ad
commit d83c2dd8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ import (
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
)
var dslTestcases = map[string]testutils.TestCase{
"dsl/hide-version-warning.yaml": &dslVersionWarning{},
"dsl/show-version-warning.yaml": &dslShowVersionWarning{},
var dslTestcases = []TestCaseInfo{
{Path: "dsl/hide-version-warning.yaml", TestCase: &dslVersionWarning{}},
{Path: "dsl/show-version-warning.yaml", TestCase: &dslShowVersionWarning{}},
}
type dslVersionWarning struct{}