Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/cmd/integration-test/whois.go
2070 views
1
package main
2
3
import (
4
"github.com/projectdiscovery/nuclei/v3/pkg/testutils"
5
)
6
7
var whoisTestCases = []TestCaseInfo{
8
{Path: "protocols/whois/basic.yaml", TestCase: &whoisBasic{}},
9
}
10
11
type whoisBasic struct{}
12
13
// Execute executes a test case and returns an error if occurred
14
func (h *whoisBasic) Execute(filePath string) error {
15
results, err := testutils.RunNucleiTemplateAndGetResults(filePath, "https://example.com", debug)
16
if err != nil {
17
return err
18
}
19
return expectResultsCount(results, 1)
20
}
21
22