mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 13:45:28 +00:00
* Fixing wrong function/variable name * remove explicit result length check for whois integration test Co-authored-by: Sajad Parra <parrasajad@gmail.com>
21 lines
489 B
Go
21 lines
489 B
Go
package main
|
|
|
|
import (
|
|
"github.com/projectdiscovery/nuclei/v2/pkg/testutils"
|
|
)
|
|
|
|
var whoisTestCases = map[string]testutils.TestCase{
|
|
"whois/basic.yaml": &whoisBasic{},
|
|
}
|
|
|
|
type whoisBasic struct{}
|
|
|
|
// Execute executes a test case and returns an error if occurred
|
|
func (h *whoisBasic) Execute(filePath string) error {
|
|
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "https://example.com", debug)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return expectResultsCount(results, 1)
|
|
}
|